Am I not escaping this JavaScript HTML correctly? -


why javascript not getting rendered correctly when outputted html?

var innerhtml =  "<div style='color:yellow;font: 14px//14px /'lucida grande/',sans-serif;'>"; 

am not escaping correctly?

/ should \

var innerhtml =  "<div style=\"color:yellow;font: 14px/14px 'lucida grande',sans-serif;\">" 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -