Right. The thing is, to get this working, you need a parser. Either - use one written in JavaScript (e.g. ejohn.org/blog/pure-javascript-html-parser ) which is slow and bulky, or - find a way to get the parsing done by Firefox, which I prefer
–
Pumbaa80Apr 12 '09 at 15:20

Not really, you could just search over the text node data and use splitText() to split out each match you find and insert the above span element. No parsing involved.
–
bobinceApr 12 '09 at 21:53