Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/Html/encode_special_characters.php
Назад
<?php declare(strict_types=1); namespace Psl\Html; use function htmlspecialchars; use const ENT_HTML5; use const ENT_QUOTES; use const ENT_SUBSTITUTE; /** * Convert special characters to HTML entities. * * @param bool $double_encoding If set to false, this function will not * encode existing html entities. * @param Encoding $encoding defines character set used in conversion. * * @psalm-taint-escape html * * @pure */ function encode_special_characters(string $html, bool $double_encoding = true, Encoding $encoding = Encoding::UTF_8): string { return htmlspecialchars($html, ENT_QUOTES | ENT_HTML5 | ENT_SUBSTITUTE, $encoding->value, $double_encoding); }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка