remove html tags


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var htmlStr:String = "<a href='http://bewarz.of.warez.ru'>A dangerous link</a>";
  2.  
  3. var removeHTML:RegExp = new RegExp("<[^>]*>", "gi");
  4.  
  5. var safeStr:String = htmlStr.replace(removeHTML, "");

URL: http://www.kirupa.com/forum/showpost.php?p=2254156&postcount=3

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.