摘要: 两个函数在格式化带有英文字符的html代码的时候基本没啥问题,但是htmlentities对中文字符也不放过,这样得出来的结果是中文字符部分变为一堆乱码。 The translations performed are: ‘&’ (ampersand) becomes ‘&’ ‘”‘ (double quote) becomes ‘”‘ when ENT_NOQUOTES is not set. ”’ (single quote) becomes ”’ only when ENT_QUOTES is set. ‘<’ (less than) becomes ‘<’ ‘ 阅读全文