Sublime ships with an error in the HTML language grammar.
Try this:
<img src="foo" alt='that\'s all folks' />
And you’ll see it doesn’t know about escaped punctuation inside quotes.
The problem can be fixed with a few small changes to HTML.tmLanguage – is this available on github? Can’t find it.