Posted By

dx0ne on 11/18/09


Tagged

as3


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

alejandromb
adrianparr


remove html tags


 / Published in: ActionScript 3
 

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

  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, "");

Report this snippet  

You need to login to post a comment.