How do I display ' and " inside input tags?
> You can use entities (e.g. " for ") or character references (e.g.
> " for " and ' for ') to escape quotes in attribute values.
Yes, but the apostrophe need not be "escaped" when the attribute is enclosed
into quotation marks.
On the other hand, the question arises what _else_ gets written into the
attributes. If the data comes from database entries containing headlines,
there's really nothing to stop _any_ characters*) from getting into the
attribute values, unless some filtering is specifically programmed. I'm
pretty sure there's some general-purpose _function_ in PHP to handle such
*) such as the string ©, which will be treated as copyright symbol by
browsers, or non-Ascii with potentially confusing effects.
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html