Hi - I'm using the replace function to hilite search words in text which
is returned. However, as the text which is being searched also includes
HTML, I find sometimes that the HTML tags can be replaced, which in turn
messes up the text which is dieplayed.
Is there any way of checking only text which does not appear between <>
tags?
eg.
myText="<img src='bob.gif'>b ob"
mySearch="bob"
replace(myText, mySearch,"<b>" & mySearch & "</b>")
...this will end up:
myText="<img src='<b>bob</b>.gif'><b>bob </b>"
Has anyone any ideas?
Many thanks,
Mark Tait
mark@fixitks.co .uk
Knowledge Management Solutions
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
is returned. However, as the text which is being searched also includes
HTML, I find sometimes that the HTML tags can be replaced, which in turn
messes up the text which is dieplayed.
Is there any way of checking only text which does not appear between <>
tags?
eg.
myText="<img src='bob.gif'>b ob"
mySearch="bob"
replace(myText, mySearch,"<b>" & mySearch & "</b>")
...this will end up:
myText="<img src='<b>bob</b>.gif'><b>bob </b>"
Has anyone any ideas?
Many thanks,
Mark Tait
mark@fixitks.co .uk
Knowledge Management Solutions
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Comment