Is there any function that converts
<a href="test.php"/>
to
< href="test.php"/>
It would be helpful if all html characters were converted in the similar manner.
Is there a function or library to do this?
Is there any function that converts
<a href="test.php"/>
to
< href="test.php"/>
It would be helpful if all html characters were converted in the similar manner.
Is there a function or library to do this?
var eaten:String = myString.replace(/&/g,'&').
replace(/</g,'<').
replace(/>/g,'>').
replace(/"/g,'"');
It sounds like encodeURIComponent may be what you're after:
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/package.html#encodeURIComponent%28%29