html entity decode - 语法
string html_entity_decode ( string $string [, int $flags=ENT_COMPAT | ENT_HTML401 [, string $encoding=ini_get("default_charset") ]] )
它用于将HTML实体转换为其应用程序字符
| Sr.No | 参数 & Description |
|---|---|
| 1 |
string 它包含有关输入字符串的信息 |
| 2 |
flags 它包含有关标志的信息 |
html entity decode - 返回值
它返回解码后的字符串。
html entity decode - 示例
<?php $input="tutorials\"point\" simply <b>easy</b> learning"; $ab=htmlentities($input); $b=html_entity_decode($ab); echo $ab; ?>
这将产生以下输出--
tutorials "point" simply <b>easy</b> learning