Well, since HTML builds on SGML it's not clearly stated in the HTML specification,
HTML 2.0 _does_ cleary state that ' is valid. RFC 1866, section 3.2.4.
Take the Euro character as an example. "\x20AC" is what I'd use today, but that wouldn't work. True wide-string doesn't work well with tools such as mail, cvs, diff etc so that's not an option either. UTF-8 escaping is even less of an option due to more non-printing characters.
Just encode the source code as iso-8859-15. Works fine with tools such as mail, cvs, diff etc.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-09-23 00:20: Subject: Re: wish: string with other quoting then \
Last I checked ' was not a valid HTML quoting character (but I might be incorrect or it might have changed).
Well, since HTML builds on SGML it's not clearly stated in the HTML specification, but I've seen several examples on the W3C site where ' is used to quote attribute values in HTML code. Don't know if it's been true since the first version, though, but in reality I've never had a problem with it.
Just insert them verbatim, no quoting needed.
Take the Euro character as an example. "\x20AC" is what I'd use today, but that wouldn't work. True wide-string doesn't work well with tools such as mail, cvs, diff etc so that's not an option either. UTF-8 escaping is even less of an option due to more non-printing characters.
/ Jonas Walldén