So I receive an NSString with html code like this:
<p class="img"><img src="blahblahblah"></p><p>This is some text</p>
I would like to find the end of the img-classed paragraph, so I can insert a heading in between the two paragraphs. Please note:
- that the img-classed paragraph is not necessarily the first paragraph in the string.
- there can be multiple img-classed paragraphs in the string but I only need to insert something after the first one
I would like to find the character-position after the first img-classed </p>
in the string, and not parse it.