Posted By

chrisitan on 02/02/11


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

AndrewPotter
onemanstudio


Strip Font Tags


 / Published in: ActionScript 3
 

removes all font tags from a string

  1. //strip Font Tags
  2.  
  3. function stripFont(string:String):String
  4. {
  5. var s:String = string;
  6. var regexp:RegExp = /<\/?font[^>]*>/gi;
  7. return s.replace(regexp,"");
  8. }

Report this snippet  

You need to login to post a comment.