note 63785 deleted from function.htmlentities by bjori
| From: | bjori@php.net | Date: | Thu, 30 Mar 2006 17:37:18 +0000 |
| Subject: | note 63785 deleted from function.htmlentities by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-107046@lists.php.net to get a copy of this message | ||
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>