Dom
Dom

Reputation: 3126

Replace Symbols with jQuery

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

Answers (1)

theraccoonbear
theraccoonbear

Reputation: 4337

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

Upvotes: 3

Related Questions