开发者

Replace Symbols with jQuery

Im looking for function that will allow me to remove (replace) all symbols in m开发者_StackOverflowy body tag apart from a-z letter.

Is there a simple way of doing this?

Many thanks in advance.


var new_body = $('body').html().replace(/[^a-z]/g, '');
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜