function kembalikan(str:String):String
{
return new XMLDocument(str).firstChild.nodeValue;
}
function htmlparse(str:String):String
{
return XML( new XMLNode( XMLNodeType.TEXT_NODE, str ) ).toXMLString();
}
trace(htmlparse("Pustaka & Flash"));
trace(kembalikan("Pustaka & Flash"));
Pustaka & Flash
Pustaka & Flash
facebook
twitter
google+
fb share