List Info

Thread: note 63785 added to function.htmlentities




note 63785 added to function.htmlentities
user name
2006-03-30 16:55:50
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 = '&agrave;';

//Produces '&agrave;'
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.p
hp.net/note/edit/63785
Del: integrated  -- ht
tp://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://m
aster.php.net/note/delete/63785/spam
Del: non-english -- h
ttp://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://ma
ster.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

note 63785 deleted from function.htmlentities by bjori
user name
2006-03-30 17:37:18
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 = '&agrave;';

//Produces '&agrave;'
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

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )