Function h
Convenience method for htmlspecialchars.
Link:
https://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#h
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Located at Core/functions.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Located at Core/functions.php
h( mixed $text boolean $double true string|null $charset null )
Parameters summary
mixed |
$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|null |
$charset = null |
Character set to use when escaping. Defaults to config value in |
Returns
-
mixed
Wrapped text.