note 63785 added to function.htmlentities
| From: | GOAWAYSPAMsimonLIVESATiceDOTorg at osu1 dot php dot net | Date: | Thu, 30 Mar 2006 16:55:50 +0000 |
| Subject: | note 63785 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-107044@lists.php.net to get a copy of this message | ||
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>
----
Server IP: 203.202.10.60
Probable Submitter: 203.206.73.244
----
X-Spam-Status: No, hits=3.6 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
HTML_90_100,HTML_MESSAGE autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.htmlentities.php
Edit -- http://master.php.net/note/edit/63785
Del: integrated -- http://master.php.net/note/delete/63785/integrated
Del: useless -- http://master.php.net/note/delete/63785/useless
Del: bad code -- http://master.php.net/note/delete/63785/bad+code
Del: spam -- http://master.php.net/note/delete/63785/spam
Del: non-english -- http://master.php.net/note/delete/63785/non-english
Del: in docs -- http://master.php.net/note/delete/63785/in+docs
Del: other reasons-- http://master.php.net/note/delete/63785
Reject -- http://master.php.net/note/reject/63785
Search -- http://master.php.net/manage/user-notes.php