djomla — 2010-06-29T09:44:38-04:00 — #1
Hi to all,
Recently i received email saying IE doesn't handle double quotes in the way other browsers do. For example
<a href="something" title="My title saying "i like this site"">
and this is a big issue because there is in thousand places issue like this. Is this a bug for IE and how to resolve it.
Thank you all
felgall — 2010-06-30T03:04:19-04:00 — #2
Quite right. I must not have been properly awake when I wrote my answer.
autisticcuckoo — 2010-06-30T01:14:08-04:00 — #3
Yes, but not like that.
<a href="something" title="My title saying "I like this site"">
Of course, an even easier way is to use single quotes around the attribute value in this case,
<a href="something" title='My title saying "I like this site"'>
felgall — 2010-06-29T15:57:19-04:00 — #4
You are supposed to escape double quotes when in a double quoted string.
<a href="something" title="My title saying \"i like this site\"">