/**
* 将实体html代码转换成标准html代码
*
* @access public
* @param string $str 字符串信息
* @param long $options 替换的字符集
* @return string
*/
function htmlspecialchars_decode($str, $options=ENT_COMPAT) {
$trans = get_html_translation_table(HTML_SPECIALCHARS, $options);
$decode = ARRAY();
foreach ($trans AS $char=>$entity) {
$decode[$entity] = $char;
}
$str = strtr($str, $decode);
return $str;
}
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛