javascript - JQuery - SyntaxError: missing formal parameter -


i using find registered trademark symbols , tm symbols , wrap them in sup tag class. looked around since there couple people have asked question, none seem fix problem. here code

$('body :not(script,sup)').contents().filter(function(){     return this.nodetype === 3; }).replacewith(function() {     return this.nodevalue.replace(/[™®]/g, '<sup class="registermark">$&</sup>'); }); 

the error happening on first line

$('body :not(script,sup)').contents().filter(function(){ 


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -