xsl highlight function breaking html tags
-
hello, Ive come across a highlight function that i was able to add to a search feature i have on a page. however the current method it uses will wrap text that is found even inside of html so its making the tags no longer work. has anyone dealt with this type of thing before? here's the highlighter template example of problem $text = Simple steps to walkthrough $what = walk output=[Simple steps to walkthrough](http://www.<font style...>walk</font>throughs.com) Id appreciate any insight on this. i thought that perhaps i could examine for an unclosed < in before variable and unopened > in after but im not sure what the best way to do this would be Thanks in advance werD, MCP
-
hello, Ive come across a highlight function that i was able to add to a search feature i have on a page. however the current method it uses will wrap text that is found even inside of html so its making the tags no longer work. has anyone dealt with this type of thing before? here's the highlighter template example of problem $text = Simple steps to walkthrough $what = walk output=[Simple steps to walkthrough](http://www.<font style...>walk</font>throughs.com) Id appreciate any insight on this. i thought that perhaps i could examine for an unclosed < in before variable and unopened > in after but im not sure what the best way to do this would be Thanks in advance werD, MCP
this is what im thinking. the higlighter template uses before term and after so $text = Simple steps to walkthrough $what = walk before1 = [Simple steps to walkthrough](http://www.
term1 = walk
after1 =throughs.com) im thinking that i can use a reverse function and have before1rev = .www//:ptth"=ferh a< after1rev = >a/"moc.shguorht i was thinking i could run some logic off of that to get an intended result but now im just dizzy :S any thoughts? CODE /\ - here's the reverse function im using CODE