Index: cms/converters.py |
=================================================================== |
--- a/cms/converters.py |
+++ b/cms/converters.py |
@@ -145,17 +145,17 @@ class Converter: |
for i in range(len(fixed_strings)): |
result = re.sub(r"\{%d\}" % (i + 1), fixed_strings[i], result, 1) |
# Insert attributes |
result = escape(result) |
def stringify_attribute((name, value)): |
return '%s="%s"' % ( |
escape(name), |
- escape(self.insert_localized_strings(value, escapes)) |
+ escape(self.insert_localized_strings(value, {})) |
) |
for tag in self.whitelist: |
saved = saved_attributes.get(tag, []) |
for attrs in saved: |
attrs = map(stringify_attribute, attrs) |
result = re.sub( |
r"%s([^<>]*?)%s" % (re_escape("<%s>" % tag), re_escape("</%s>" % tag)), |