Prototype实战教程:String -> stripScripts
作者:不详, 来源:网络, 阅读:118, 发布时间:2014-05-24
stripScripts
stripScripts() -> string
移除字符串中所有的 HTML script
块。
样例
'a <a href="#">link</a><script>alert("hello world!")</script>'.stripScripts();
// -> 'a <a href="#">link</a>'