部分代码如下: str="<OBJECT><PARAM NAME='FlashVars' value=\"dataXML=" ;
str=str+"<graph outCnvbasefontsize='15' bgColor='F1f1f1' decimalPrecision='2' showPercentageValues='0' showNames='1' numberPrefix='' showValues='1' showPercentageInLabel='1' formatNumberScale='0' pieYScale='50' pieBorderAlpha='40' pieFillAlpha='70' pieSliceDepth='15' pieRadius='180'> ";
str=str+"<set value='8989' name='名称1' color='5785687' alpha='100'/>";
str=str+"<set value='8689' name='名称2' color='2785687' alpha='100'/>";
str=str+"<set value='894' name='名称3' color='467787' alpha='100'/>";
str=str+"</graph>\">";
str=str+"</OBJECT>";在Ie浏览器中能够正常使用,但是在谷歌浏览器中就不能使用,发现在谷歌浏览器中把dataXML中的尖括号<>全部变为了&gt;&lt;也就是
str=str+"<graph outCnvbasefontsize='15' bgColor='F1f1f1' decimalPrecision='2' showPercentageValues='0' showNames='1' numberPrefix='' showValues='1' showPercentageInLabel='1' formatNumberScale='0' pieYScale='50' pieBorderAlpha='40' pieFillAlpha='70' pieSliceDepth='15' pieRadius='180'> ";
str=str+"<set value='8989' name='名称1' color='5785687' alpha='100'/>";
str=str+"<set value='8689' name='名称2' color='2785687' alpha='100'/>";
str=str+"<set value='894' name='名称3' color='467787' alpha='100'/>";
这些中的尖括号全部变为了&gt;&lt;
导致谷歌浏览器中不能使用,请问各位高人如何避免这样的情况,请指教,多谢!!