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
Post a Comment