Issue Bug Closed

#59540Viewhelpers htmlspecialchars and htmlentities never replace single quotes

Julian Hofmann 06/13/14, 09:49 updated 10/21/17, 17:45

Description

Both Viewhelper are documented with

Text with & " ' < > * replaced by HTML entities

In fact, single quotes will never be replaced. Replacing quotes depends on the flags parameter which is given to htmlspecialchars()/htmlentities(). Both Viewhelpers set this flag to either ENT_NOQUOTES or ENT_COMPAT. But for converting both, single and double quotes, ENT_QUOTES would be needed.

Reviews 2