samskivert/jmustache — pull request #18 by martiell (2012-06-12 16:29:41+00:00)
Title: Use entity number when escaping apostrophes for IE compatibility.

The &apos; entity is rendered verbatim in Internet Explorer, rather than as an apostrophe. Prior to HTML5, 'apos' is an XML entity, but not an [HTML entity](http://www.w3.org/TR/html401/sgml/entities.html).

Using the entity number (#39) is valid in both HTML and XML.

This change escapes single quotes using &#39; rather than &apos;.

See also:

* [The Curse of &apos;](http://fishbowl.pastiche.org/2003/07/01/the_curse_of_apos/)
* [Internet explorer - how do you escape single quotes](http://stackoverflow.com/questions/1213507/internet-explorer-how-do-you-escape-single-quotes)