document.write(str);的有关问题

document.write(str)的问题1.aspdocument.write(str)str是新闻内容,现在这样输出提示未结束的字符串常量

document.write(str);的问题
1.asp
document.write(str);

str是新闻内容,现在这样输出提示未结束的字符串常量,怎么解决。

<SCRIPT   language=javascript   src= "1.asp "> </SCRIPT>

[解决办法]
新闻内容中有 " '等符号 要先经过过滤替换。
[解决办法]
document.write(str.Replace( "\ " ", " ' "));
[解决办法]
document.write(str.Replace( "\ " ", " ' "));