开发者

Altering registered symbols (R)

Would it be possible with jQuery to fi开发者_JAVA技巧nd in all symbols that are written with

®

and wrap them with a sup tag?

<sup>&reg;</sup>


var replaced = $('body').html().replace('&reg;', '<sup>&reg;</sup>');
$('body').html(replaced);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜