Skip to content

Instantly share code, notes, and snippets.

Created Nov 10, 2015
What would you like to do?
Adding a copyright symbol every time an instance of a word is used (for use on a site where we needed that copyright added throughout automatically)
jQuery(document).ready(function( $ ) {
$("body *").replaceText( /Hold Me Tight/gi, "Hold Me Tight<span class='trademark'>&reg;</span>" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment