Copy link to clipboard
Copied
var myString:String="<font face='arial'> <b>About Telcon</b></font>"
i need remove face tag "face='arial'".
finally i need below String is it possible.
"<font> <b>About Telcon</b></font>"
Copy link to clipboard
Copied
If you want to leave only the <font> tag, then you could use a regular expression to replace the whole <font...> tag, as in...
var regexp:RegExp = /<font.*?>/;
myString = myString.replace(regexp, "<font>");
But if you want to specifically remove only the face portion of it, then you could use...
var regexp:RegExp = / face.*'/;
myString = myString.replace(regexp, "");
Copy link to clipboard
Copied
I was going to add that have a <font> tag that specifies nothing is about as good as not having one at all.