note 84814 added to function.html-entity-decode
| From: | Anonymous at osu1 dot php dot net | Date: | Thu, 31 Jul 2008 05:01:58 +0000 |
| Subject: | note 84814 added to function.html-entity-decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-142967@lists.php.net to get a copy of this message | ||
You may want to specify the character set if you see unexpected behavior. Here is an example.
# cat test.php
<?php
$str = '!';
$quotes = html_entity_decode($str, ENT_QUOTES);
$noquotes = html_entity_decode($str, ENT_NOQUOTES);
$noquotesutf8 = html_entity_decode($str, ENT_NOQUOTES, 'UTF-8');
echo "quotes='$quotes', noquotes='$noquotes',
noquotesutf8='$noquotesutf8'\n";
?>
# php test.php
quotes='!', noquotes='!', noquotesutf8='!'
----
Server IP: 69.147.83.197
Probable Submitter: 98.232.172.233
----
Manual Page -- http://www.php.net/manual/en/function.html-entity-decode.php
Edit -- https://master.php.net/note/edit/84814
Del: integrated -- https://master.php.net/note/delete/84814/integrated
Del: useless -- https://master.php.net/note/delete/84814/useless
Del: bad code -- https://master.php.net/note/delete/84814/bad+code
Del: spam -- https://master.php.net/note/delete/84814/spam
Del: non-english -- https://master.php.net/note/delete/84814/non-english
Del: in docs -- https://master.php.net/note/delete/84814/in+docs
Del: other reasons-- https://master.php.net/note/delete/84814
Reject -- https://master.php.net/note/reject/84814
Search -- https://master.php.net/manage/user-notes.php