你可以在输入时把引号去掉啊,代码不会错地!如果不想去掉,你可以这么做:$imgcode="<img height=65 src="http://www.wljgw.com/admin/news/updates/105769893007.jpg" width=120 border=0>";
$noslashe=ereg_replace('\"','"',stripslashes($imgcode));
$noslashe=ereg_replace('\"','"',stripslashes($imgcode));
我上面的方法可以的
你看我写的
http://www.gameach.com/checker/index.php
第三种方式就是输入XML的内容来进行检查
XML是不支持\"这样的方式的
我经过处理后去掉了SLASHE
程序能正确的识别了
我的方法没有错
我标准的xml文件怎么到了你那里说“不是xml文件”了呢?
反斜杠应该被首先转义
$noslashe=ereg_replace('\"','"',stripslashes($imgcode));
在输出时直接stripslashes($imgcode)不就行了。