Created
November 10, 2015 08:41
-
-
Save jonschr/dd47658988877ef2020c to your computer and use it in GitHub Desktop.
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function( $ ) { | |
$("body *").replaceText( /Hold Me Tight/gi, "Hold Me Tight<span class='trademark'>®</span>" ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment