stripScripts :: String

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>'


Prototype API 1.5.0 - prototypejs.org