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

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -