stripScripts

stripScripts() -> string

Strips a string of anything that looks like an HTML script block.

Example

'a <a href="#">link</a><script>alert("hello world!")</script>'.stripScripts();
// -> 'a <a href="#">link</a>'