PDA

View Full Version : Template containing quotes and apostrophes



brandon
21 Apr 2007, 9:32 AM
Hello,

Say I've got a template like so:

<li onmouseover="alert('{0}')">{1}</li>

Is this possible? Template seems to get upset if I pass it any apostrophe. Quotes work great, but in the example above there is a need for both quotes and apostrophes. I've tried substituting &quot; or &apos; or &#39 ;, but I haven't found a way around.

Am I missing something?

Thanks,

Brandon

KimH
23 Apr 2007, 2:49 AM
Try the following:

<li onmouseover="alert(\'{0}\')">{1}</li>