I've only tested this with the actual sample below, so it may need some
refinement, but this should get you started:
var myText:String = '<p class="myClass">my text</p>';
myText = myText.replace(/\<.*?\>/g, "");
trace(myText);
Hope that helps,
Sid
----- Original Message ----
From: hugocorept <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, July 19, 2008 3:37:38 AM
Subject: [flexcoders] htmlText to Text
Hi guys,
Does somebody have an idea to convert htmlText to text, it means remove the
Angle
Brackets.
Example:
<FONT ...>Lorem Ipsum</FONT>
to
Lorem Ipsum
I don't know, RegExp, some String Method ? :S
Thanks,
Core