Please excuse this way off topic question but I'm looking for someone
smarter than I am and this seems like a good place to look :-)

I'm fighting with an HTML question.  I need to create a hidden <input> tag
whose value will contain white space, double quotes and single quotes.

For example

<input type="hidden" name="fubar" value="lots of crap " ' ">

Obviously that won't work but I'm at a loss for something that will.  The
contents of the value attribute are CDATA and according to the HTML 4.01
specification section 6.2
(http://www.w3.org/TR/1999/REC-html401-19991224/types.html#h-6.2), character
entities in CDATA are supposed to be replaced with characters.  So one might
think that

<input type="hidden" name="fubar" value="lots of crap &quot; &apos; ">

would work but it doesn't in either Netscape or IE.  There must be something
simple that I'm missing.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to