diff markup/core.py @ 34:3421dd98f015 trunk

quotes should not be escaped inside text nodes
author mgood
date Sun, 02 Jul 2006 03:20:56 +0000
parents b4f78c05e5c9
children 1f3cd91325d9
line wrap: on
line diff
--- a/markup/core.py
+++ b/markup/core.py
@@ -239,7 +239,8 @@
         return '<%s "%s">' % (self.__class__.__name__, self)
 
     def join(self, seq):
-        return Markup(unicode(self).join([escape(item) for item in seq]))
+        return Markup(unicode(self).join([escape(item, quotes=False)
+                                          for item in seq]))
 
     def stripentities(self, keepxmlentities=False):
         """Return a copy of the text with any character or numeric entities
Copyright (C) 2012-2017 Edgewall Software