Note Submitter: GOAWAYSPAMsimonLIVESATiceDOTorg
Reason: useless
----
If you're programming multilingual systems, and have
encountered the grief of using javascript 'alert()' to
find that it doesn't properly display htmlentities,
there's a work around that allows you to leave your strings
clean.
<script>
var str = 'à';
//Produces 'à'
alert(str);
o=document.createElement("span"); o.innerHTML=t;
o.firstChild.data;
//Produces 'à' [an accented a]
alert(o.firstChild.data);
</script>
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|