As stated in, When did single quotes in HTML become so popular? and Jquery embedded quote in attribute, the Wikipedia entry on HTML says the following:
The single-quote character ('), when used to quote an attribute value, must also be escaped as
'
or'
(should NOT be escaped as'
except in XHTML documents) when it appears within the attribute value itself.
Why shouldn't '
be used? Also, is "
safe to be used instead of "
?