Small change to unescape function in template_helpers (move replace('&', '&') at the end).
authorPawel Solyga <Pawel.Solyga@gmail.com>
Sun, 21 Sep 2008 08:59:11 +0000
changeset 183 37d98c3cefa5
parent 182 72f193fb5633
child 184 7c0b42aecd9b
Small change to unescape function in template_helpers (move replace('&amp;', '&') at the end).
app/soc/views/helpers/template_helpers.py
--- a/app/soc/views/helpers/template_helpers.py	Sun Sep 21 08:56:52 2008 +0000
+++ b/app/soc/views/helpers/template_helpers.py	Sun Sep 21 08:59:11 2008 +0000
@@ -64,8 +64,8 @@
   if not isinstance(html, basestring): 
     html = str(html) 
   
-  html.replace('&amp;', '&').replace('&lt;', '<')
-  html.replace('&gt;', '>').replace('&quot;', '"').replace('&#39;',"'")
+  html.replace('&#39;',"'").replace('&lt;', '<')
+  html.replace('&gt;', '>').replace('&quot;', '"').replace('&amp;', '&')
   return html