PHP html_entity_decode() 函数

时间:2022-11-16 12:40:06
html_entity_decode(string,flags,character-set)  把 HTML 实体转换为字符。
html_entity_decode() 函数是 htmlentities() 函数的反函数。


参数flags:
  • ENT_COMPAT - 默认。仅解码双引号。
  • ENT_QUOTES - 解码双引号和单引号。
  • ENT_NOQUOTES - 不解码任何引号。