Use this code (Again this is not so “modular” code).
Use this code and that`s it it:
<script>
/* convert DermaGenius® */
jQuery(document).ready(function($){
// var pattern = /\b(these|three|words)/gi; // words you want to wrap
var pattern = /\b(®)/gi; // words you want to wrap
var replaceWith = '<sup>$1</sup>'; // Here's the wap
$('#target').each(function(){
$(this).html($(this).html().replace(pattern,replaceWith));
});
});
/* convert DermaGenius ® */
jQuery(document).ready(function($){
// var pattern = /\b(these|three|words)/gi; // words you want to wrap
var pattern = /\b( ®)/gi; // words you want to wrap
var replaceWith = '<sup>$1</sup>'; // Here's the wap
$('#target').each(function(){
$(this).html($(this).html().replace(pattern,replaceWith));
});
});