Function h
Convenience method for htmlspecialchars.
Package: Cake
Link: http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#h
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Located at Cake/basics.php
Link: http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#h
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Located at Cake/basics.php
h( string|array|object $text , boolean $double = true , string $charset = null )
Parameters summary
string|array|object |
$text |
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 |
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' |
Returns
-
string
Wrapped text