php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #42738 htmlspecialchars default quote_style set at runtime.
Submitted: 2007-09-23 03:18 UTC Modified: 2013-02-18 00:33 UTC
From: segalerez at gmail dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.2.4 OS: Irrelevant
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: segalerez at gmail dot com
New email:
PHP Version: OS:

 

 [2007-09-23 03:18 UTC] 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.


Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-06 19:30 UTC] rasmus@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues
 [2010-04-06 19:30 UTC] rasmus@php.net
What do you mean by quote style here?  " vs. " or do you really mean not 
encoding quotes at all vs. encoding them?
 [2013-02-18 00:33 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 07 23:01:27 2024 UTC