Prev: JavaScript Architecture for Project?
Next: FAQ Topic - What does the future hold for ECMAScript? (2010-07-20)
From: khinester on 19 Jul 2010 10:35 hello, from my code, http://paste.lisp.org/+2EKJ in the description: "", this works. but if i add any html, such as description:"<p font="12px"> description </p>", does not work. is there a way to do this without escaping the font="12px" thanks
From: Martin Honnen on 19 Jul 2010 11:39
khinester wrote: > in the description: "", this works. > > but if i add any html, such as description:"<p font="12px"> > description </p>", does not work. > > is there a way to do this without escaping the font="12px" You could use single quotes to delimit the string literal: description: '<p font="12px">description<\/p>' Note that HTML does not have an attribute named 'font': http://www.w3.org/TR/html4/index/attributes.html -- Martin Honnen http://msmvps.com/blogs/martin_honnen/ |