title: Wrap all text outside tags in another tag
body: <p>My html can look (and sometimes looks) like this:</p>
  
  <pre><code>&lt;p&gt;Some text &lt;b&gt;some &lt;i&gt;more text&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;a little bit more text
  </code></pre>
  
  <p>I need to wrap in spans every word within these tags. So the wrapped words would be Some, text, some, more, text, a, little, bit, more, text. I tried to use this code:</p>
  
  <pre><code>html_variable.replace(/(?&lt;=&gt;)[^&lt;&gt;]+(?=&lt;)/g,filter)
  </code></pre>
  
  <p>where filter is a custom function, using which I easily wrapped every word. However, it turned out that (?&lt;=>), a positive lookbehind, is not yet supported in ios. I am really bad in regular expressions, so I am asking for your help. Is there any well-supported alternative to the code above?</p>