Convenience method for htmlspecialchars.
h( string|array|object $text boolean $double true string $charset null )
string|array|object | $text | <p>Text to wrap through htmlspecialchars. Also works with arrays, and objects. Arrays will be mapped and have all their elements escaped. Objects will be string cast if they implement a <code>__toString</code> method. Otherwise the class name will be used.</p> |
boolean | $double = true | Encode existing html entities |
string | $charset = null | Character set to use when escaping. Defaults to config value in 'App.encoding' or 'UTF-8' |
string
Wrapped text
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/2.8/function-h.html