I'm interested in skipping over html
For example if the line contains:
<p style="something">Test <br>data</p>
Say I want to run the function foo().
I only want to foo('Test ') and foo(data).
But I don't want to loose the HTML. Just I don't want to apply the desired function(s) to it.
Any advice?
I'm stumped. Every idea I come up with has a side effect (like canning the html), or applying it to all data.