As a mere example, I want to apply the class \"fancy\" to all occurrences of the sign \"&\" in the document.
fancy
&
The C
Regex is commonly used for this:
http://chirale.wordpress.com/2009/07/04/character-substitution-on-jquery/
http://forum.jquery.com/topic/how-to-select-specific-characters-and-replace-them