title: split html text in 2 paragraphs
body: <p>hi i have a html text like this:</p>
  
  <pre><code>aaa dafjsld dslajfk òsal asfòljd &lt;a href="ciao.com"&gt;aa aa&lt;/a&gt; adsfsadfsadfs
  </code></pre>
  
  <p>i want to split it in 2 paragraphs. but i don't want to generate this situation:</p>
  
  <pre><code>&lt;p&gt;aaa dafjsld dslajfk òsal asfòljd &lt;a href="ciao.com"&gt;aa&lt;/p&gt;&lt;p&gt; aa&lt;/a&gt; adsfsadfsadfs&lt;/p&gt;
  </code></pre>
  
  <p>how can i check if the split involves any tags and avoid it?</p>
  
  <p>thanks </p>