Strip Font Tags


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

removes all font tags from a string


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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.