M
Mark Tait
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'>bob"
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
(e-mail address removed)
www.fixitks.co.uk
Knowledge Management Solutions
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'>bob"
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
(e-mail address removed)
www.fixitks.co.uk
Knowledge Management Solutions