[PATCH] Permit XML entities to be escaped in template output

Patrick Mézard pmezard at gmail.com
Mon Feb 25 15:39:24 CST 2008


Jesse Glick a écrit :
> # HG changeset patch
> # User Jesse Glick <jesse.glick at sun.com>
> # Date 1201576752 18000
> # Node ID 94376877f34cee0bd37b0416faaf9fe4ae61067d
> # Parent  f8ad3b76e92327b551c5dd78f2848b24cfb1664f
> Permit XML entities to be escaped in template output.
> 
> Useful for creating XML documents directly from Hg logging. Can also be used for
> HTML. For use in content, will escape '&', '<', and for completeness '>'
> (although it is not strictly necessary). For use in attributes, will also escape
> ' and ". Will also replace nonprinting (ASCII) control characters with spaces,
> since these are illegal in XML.

Pushed in crew as 434139080ed4, featuring Thomas style fix. Thanks !


More information about the Mercurial-devel mailing list