Reputation: 3126
Im looking for function that will allow me to remove (replace) all symbols in my body tag apart from a-z letter.
Is there a simple way of doing this?
Many thanks in advance.
Upvotes: 0
Views: 1188
Reputation: 4337
var new_body = $('body').html().replace(/[^a-z]/g, '');
Upvotes: 3