2012年3月22日

php 随笔

摘要: html实体分为alpha entities(named entities)和numeric entities,php函数htmlspecialchars、htmlentities都只能转化为alpha entities,如果要转化为numeric entities要使用mb_encode_numericentity函数,如转化为GBK编码的numeric entities:$str="(王贯)'<";$convmap=array(0x0,0xffff,0,0xffff);$str=mb_encode_numericentity($str, $convmap, 阅读全文

posted @ 2012-03-22 12:55 argb 阅读(289) 评论(0) 推荐(0) 编辑

导航