note 18954 added to function.htmlentities
| From: | jmmolina at ifrance dot com | Date: | Mon, 11 Feb 2002 12:01:38 +0000 |
| Subject: | note 18954 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26469@lists.php.net to get a copy of this message | ||
That function is crucial if you want to display a string in a VALUE tag:
<INPUT TYPE="text" NAME="idLangList<?= $rowLangList ['id']
?>" VALUE="<?= htmlentities ($rowLangList ['sValue']) ?>">
if the $rowLangList ['sValue'] contains something like: "Hello 'PHP'",
then it's converted to "Hello 'PHP'"
--
http://www.php.net/manual/en/function.htmlentities.php
http://master.php.net/manage/user-notes.php?action=edit+18954
http://master.php.net/manage/user-notes.php?action=delete+18954
http://master.php.net/manage/user-notes.php?action=reject+18954