Req #42738 [Opn->Fbk]: htmlspecialchars default quote_style set at runtime.
| From: | rasmus@php.net | Date: | Tue, 06 Apr 2010 17:30:53 +0000 |
| Subject: | Req #42738 [Opn->Fbk]: htmlspecialchars default quote_style set at runtime. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-149342@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=42738&edit=1
ID: 42738
Updated by: rasmus@php.net
Reported by: segalerez at gmail dot com
Summary: htmlspecialchars default quote_style set at runtime.
-Status: Open
+Status: Feedback
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Irrelevant
PHP Version: 5.2.4
New Comment:
What do you mean by quote style here? " vs. " or do you really
mean not
encoding quotes at all vs. encoding them?
Previous Comments:
------------------------------------------------------------------------
[2007-09-23 03:18:45] segalerez at gmail dot com
Description:
------------
I wish that PHP had an option to set a runtime variable that sets the
default quote style for htmlspecialchars.
Something like set_htmlspecialchars_quote_style(ENT_QUOTES);
this way I could build a PHP component that wouldn't have to deal with
the quote style at all. if the user wants to change to quote style of my
component he could easily set this default style.
Every page will always use one quote style, depending on wether it's an
HTML or XHTML.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=42738&edit=1