AS2 Remove HTML Tags from Text


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



Copy this code and paste it in your HTML
  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. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.