Are there any functions available to convert:
Me, Myself & I
to
Me, Myself & I
I can't find anything in the Flex documentation.
Thanks.
Check this out. No swc's to include. Basically it's
var s:String = new XMLNode(3, "Me, Myself & I").toString();
Here's the AS3 solution:
import flash.xml.XMLNode;
import flash.xml.XMLNodeType;
public function htmlEscape(str:String):String {
return XML( new XMLNode( XMLNodeType.TEXT_NODE, str ) ).toXMLString();
}
Source: http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With