PHP html_entity_decode() 函数

html_entity_decode(string,flags,character-set)  把 HTML 实体转换为字符。
html_entity_decode() 函数是 htmlentities() 函数的反函数。


参数flags:
  • ENT_COMPAT - 默认。仅解码双引号。
  • ENT_QUOTES - 解码双引号和单引号。
  • ENT_NOQUOTES - 不解码任何引号。
posted @ 2018-03-13 16:58  学知无涯  阅读(178)  评论(0编辑  收藏  举报