【发布时间】:2010-11-24 13:23:27
【问题描述】:
我有一个字符串<div id="myid">...</div>
我将如何将其更改为
<div id="myid">...</div>
我尝试了一些方法,但没有任何帮助?
更新
function get_page(){
$file = 'file.php';
$str = file_get_contents($file);
$str = html_entity_decode($str);
return $str;
}
$output = get_page();
echo $output;//don't work
修复
function get_page(){
$file = 'file.php';
$str = file_get_contents($file);
return $str;
}
$output = get_page();
echo html_entity_decode($output);//works
【问题讨论】: