[thelist] Escaping quotes in a hidden input's value
Joshua Olson
joshua at waetech.com
Thu Jun 3 12:56:12 CDT 2004
> -----Original Message-----
> From: Tab Alleman
> Sent: Thursday, June 03, 2004 1:32 PM
>
> Joshua Olson wrote:
>
> > Try switching the outside quotes to single quotes:
> >
> > <input type="hidden" name="Title" value='"I Loved It!"'>
>
> 1) Is this xHTML compliant?
No. The only way to make it compliant is to escape the quotes... a
technique you've already indicated an aversion to :-) There's simply no
pleasing some people.
> 2) What if I want <input type="hidden" name="Title" value='"It's The
> Bomb!"'>? Then don't I have to escape the single-quote? How would I do
> that?
>
> 3) I'd really rather not break my own coding convention of
> property="value" if I can possibly avoid it.
It may be time to start escaping.
<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com/service_areas/
706.210.0168
More information about the thelist
mailing list