Doc #66513 [Opn]: htmlspecialchars ENT_NOQUOTES documentation
| From: | wes dot turner at gmail dot com | Date: | Sun, 19 Jan 2014 05:42:51 +0000 |
| Subject: | Doc #66513 [Opn]: htmlspecialchars ENT_NOQUOTES documentation | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10854@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66513&edit=1
ID: 66513
User updated by: wes dot turner at gmail dot com
Reported by: wes dot turner at gmail dot com
Summary: htmlspecialchars ENT_NOQUOTES documentation
Status: Open
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
And then:
ENT_QUOTES Will convert both double and single quotes.
ENT_NOQUOTES Will leave both double and single quotes unconverted.
Previous Comments:
------------------------------------------------------------------------
[2014-01-19 05:40:59] wes dot turner at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.htmlspecialchars
---
The translations performed are:
* '&' (ampersand) becomes '&'
* '"' (double quote) becomes '"' when ENT_NOQUOTES is not set.
* "'" (single quote) becomes ''' (or ') only when
ENT_QUOTES is set.
---
Expected
---
I'm not very good at PHP, but is this how ENT_NOQUOTES works?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66513&edit=1