stripTags :: String |
Watch out for <script> tags in your string, as stripTags() will not remove their content. Use stripScripts() to do so.
Examples
'a <a href="#">link</a>'.stripTags(); // -> 'a link'
'a <a href="#">link</a><script>alert("hello world!")</script>'.stripTags(); // -> 'a linkalert("hello world!")'
'a <a href="#">link</a><script>alert("hello world!")</script>'.stripScripts().stripTags(); // -> 'a link'
See also
String: stripScripts |
Prototype API 1.5.0 - prototypejs.org