[wp-trac] [WordPress Trac] #17780: Use PHP native double encoding prevention in htmlspecialchars()
WordPress Trac
noreply at wordpress.org
Fri Jun 19 01:51:22 UTC 2015
#17780: Use PHP native double encoding prevention in htmlspecialchars()
------------------------------+--------------------------
Reporter: nbachiyski | Owner: miqrogroove
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.3
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
------------------------------+--------------------------
Comment (by miqrogroove):
Just a note about the `'` encoding. I tested `ENT_XHTML` flag which
is not well documented, and found that it gives different output when
`ENT_QUOTES` is also set. It converts each `'` into `'` which is not
necessarily more desirable than converting `'` into `'`.
But it is something we can use later if needed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17780#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list