时间:2021-07-01 10:21:17 帮助过:12人阅读
while($row= mysql_fetch_array($query)){
$text3=$row['text'];
$text4=html_entity_decode($text3);
echo $text4;
}
如上面这样 直接echo $text是OK的
但是像下边这样用XML返回到前端页面格式就变了
echo "";
echo "";
echo "";
echo "$text4 ";
echo "$id ";
echo " ";
echo " ";
求解~~
$query=mysql_query("SELECT text from opus where id=$id",$dbconn);
while($row= mysql_fetch_array($query)){
$text3=$row['text'];
$text4=html_entity_decode($text3);
echo $text4;
}
如上面这样 直接echo $text是OK的
但是像下边这样用XML返回到前端页面格式就变了
echo "";
echo "";
echo "";
echo "$text4 ";
echo "$id ";
echo " ";
echo " ";
求解~~