Created
October 20, 2020 15:29
-
-
Save dkesberg/fa65e773359f863b4f69fe6dc4a5270d to your computer and use it in GitHub Desktop.
Superscript ®and ®
This file contains hidden or 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
// superscript ® | |
$(function() { | |
$('body :not(script,sup)').contents().filter(function() { | |
return this.nodeType === 3 | |
}).replaceWith(function() { | |
return this.nodeValue | |
.replace(/®/gi, '<sup>®</sup>') | |
.replace(/®/gi, '<sup>®</sup>'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment