开发者

Replace Symbols with jQuery

开发者 https://www.devze.com 2022-12-12 04:37 出处:网络
Im looking for function that will allow me to remove (replace) all symbols in m开发者_StackOverflowy body tag apart from a-z letter.

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

精彩评论

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