Forum Moderators: coopster
I'm pretty sure thats the right piece, I might have accidently excluded something because my filter is extremely long (I put all codes on one line instead of building on my systems memory)
Example
<div class="someclass">this is enclosed text</div>
<p> other text to be manipulated here</p>-- do the job --
<div class="someclass">this is the new enclosed text</div>
<p> other text to has been manipulated here</p>
Basically I should (pseudocode):
- parse the html code
- for each match of enclosed text into HTML tags do:
----- see if text is between proper tag, for example skip (but keep) text into <meta>, <script>, <link> & <style> tags
----- manipulate enclose text if needed
- next match, start from top