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 "?
"is on the official list of valid HTML 4 entities, but'is not.From C.16. The Named Character Reference ':