# HG changeset patch # User Thinker K.F. Li # Date 1288345750 -28800 # Node ID 1727286834b58da15a27e5af8edab1201c4fdce1 # Parent f181a1ba4f9f72b4262bb27fab225a6bf0849e70 Do not replace & with & for text to show &#xxxx; diff -r f181a1ba4f9f -r 1727286834b5 tools.py --- a/tools.py Wed Feb 13 22:37:14 2008 +0800 +++ b/tools.py Fri Oct 29 17:49:10 2010 +0800 @@ -127,7 +127,7 @@ import types if not (isinstance(data, types.StringTypes) and self.safe): return str(data) - return str(data.replace('&', '&').replace('<', '<').replace('>', '>')) + return str(data.replace('<', '<').replace('>', '>')) def _esc_cdata(self, data): import types