Posted By

adrianparr on 02/15/10


Tagged

html substr strip tags text remove join split markup indexof as2 htmltext


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

hsousa


AS2 Remove HTML Tags from Text


 / Published in: ActionScript
 

URL: http://www.actionscript.org/forums/showthread.php3?t=76520

  1. function stripTags($myString:String):String
  2. {
  3. while ((istart = $myString.indexOf("<")) != -1)
  4. {
  5. $myString = $myString.split($myString.substr(istart, $myString.indexOf(">")-istart+1)).join("");
  6. }
  7. return $myString;
  8. }

Report this snippet  

You need to login to post a comment.