Edit report at http://bugs.php.net/bug.php?id=42738&edit=1

 ID:               42738
 Updated by:       ras...@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

Reply via email to