/ Published in: jQuery

This snippet will replace any "&" within the text of the container your specify with a that you can target with CSS; fancy!
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Fancy Ampersands $('*:contains("&")','#id-of-your-page-container').each(function(){ $(this).html($(this).html().replace(/&/g,'<em class="ampersand">&<\/em>')); });
Comments
