Remove HTML tags


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



Copy this code and paste it in your HTML
  1. string.replace(/<.*?>/g, "")
  2.  
  3. // Instead of "string" have to be your variable:
  4. // var s:String = "<p>Html paragraph</p>"
  5. // trace( s.replace(/<.*?>/g, "") )

Report this snippet


Comments


You need to login to view comments.