Since version 1.9.0, Twig provides the html_attr strategy for the escape filter (see documentation).
The html strategy uses the htmlspecialchars PHP function (this is confirmed by a quick look at the source). The html_attr strategy uses a series of custom substitutions that seem to have the same effect eventually.
Is there a difference between the two strategies?