Why is it that
» valid for an alt atribute but
» is not?
It depends on your doctype. In HTML 4 and 5, using named entities like
Note: the alt tag is irrelevant in this case, it allows the same textual content as outside of HTML tags.
Simplest solution in my opinion: switch to the HTML5 doctype -