I\'m writing a plugin which will convert emoticons to images in a text block for a particular site. The easy answer is to use regular expressions to detect the trigger text
I'm not sure how to comment on other's posts but if you add a filter to @RobG response it will get you there. (PS: I did submit a code edit suggestion)
....
var nodes = toArray(el.childNodes);
if (node.nodeName != "#text") //will allow embedded
etc to work.
continue;
for (var i=0, iLen=nodes.length; ihere is a smily:) and another google two:):) italics
....
Or if you want to expressly look for certain elements to skip such as or or etc.