Функция h
Удобный метод для htmlspecialchars.
Ссылка: https://book.cakephp.org/3.0/ru/core-libraries/global-constants-and-functions.html#h
Авторские права: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
Лицензия: MIT License
Расположено в Core/functions.php
Авторские права: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
Лицензия: MIT License
Расположено в Core/functions.php
h( string|array|object $text boolean $double true string|null $charset null )
Резюме параметров
string|array|object | $text | Текст для применения htmlspecialchars. Также работает с массивами и объектами. Массивы будут обработаны, и все их элементы будут экранированы. Объекты будут преобразованы в строку, если они реализуют метод |
boolean | $double = true | Кодировать существующие html-сущности. |
string|null | $charset = null | Кодировка символов, используемая при экранировании. По умолчанию используется значение конфигурации в |
Возвращает
-
string|arrayОбёрнутый текст.
© 2005–2018 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.
https://api.cakephp.org/3.5/function-h.html