Page 1 of 1

Don't capture markup

Posted: Fri Jun 23, 2006 4:45 pm
by bokehman

Code: Select all

<p> [color=red]dog < cat " horse [/color]</p>
I am trying to capture only parts of an html string that are not makup. The string may contain "<" or ">" not in markup context. The purpose of this is to apply entities only to the non markup part of the string. Any ideas?

Posted: Fri Jun 23, 2006 4:47 pm
by feyd
Filter out the markup with say a split function that knows what tags are valid markup and what aren't.