/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var htmlStr:String = "<a href='http://bewarz.of.warez.ru'>A dangerous link</a>"; var removeHTML:RegExp = new RegExp("<[^>]*>", "gi"); var safeStr:String = htmlStr.replace(removeHTML, "");
URL: http://www.kirupa.com/forum/showpost.php?p=2254156&postcount=3