开发者

" changes to double quotation mark

My problem right now is that i have a piece of text in a function call inside an onClick. I can swear that the double quotation mark is encoded to " but the whole thing just breaks down because it changes somehow back to a normal double quotation mark.

usShow("LCD TV 0-23" SONY");

I have to add that it is all built dynamically in JS.

Does JS changes encoded characters to t开发者_如何学运维heir original form on the fly, or there is something I've never understood about coding?


usShow("LCD TV 0-23\" SONY");

Simple, huh? There's even another solution:

usShow('LCD TV 0-23" SONY');


How is that line of code generated? I know in ASP.Net there were (are?) certain output functions which (incorrectly) decode HTML encoded characters. If you're having trouble, try outputting the following instead:

usShow("LCD TV 0-23\" SONY");

That should be easier to output.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜