How to replace text outside html tags?
<p>Here is my example:</p>

<pre><code>$content = "
&lt;span class="1"&gt;One of &lt;/span&gt;the major focuses for &lt;span class = "2"&gt;vB 4.1.10 is&lt;/span&gt; improving support...";
</code></pre>

<p>How can i add all text outside tags, like this:</p>

<pre><code>"&lt;span class="1"&gt;One of &lt;/span&gt; &lt;span class="3"&gt;the major focuses for&lt;/span&gt; &lt;span class = "2"&gt;vB 4.1.10 is&lt;/span&gt; &lt;span class="4"&gt;improving support...&lt;/span&gt;"
</code></pre>
