网站开发与移动开发

博客园 首页 新随笔 管理

2009年4月12日 #

摘要: 两个函数在格式化带有英文字符的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 ‘<’ ‘ 阅读全文
posted @ 2009-04-12 21:35 txf2004 阅读(131) 评论(0) 推荐(0) 编辑