as proposed by Elrond.
Conflicts:
mediagoblin/tools/text.py
Signed-off-by: Joar Wandborg <git@wandborg.com>
', '.join(too_long_tags)))
-MARKDOWN_INSTANCE = markdown.Markdown(safe_mode='escape')
+# Don't use the safe mode, because lxml.html.clean is better and we are using
+# it anyway
+UNSAFE_MARKDOWN_INSTANCE = markdown.Markdown()
def cleaned_markdown_conversion(text):
if not text:
return u''
- return clean_html(MARKDOWN_INSTANCE.convert(text))
+ return clean_html(UNSAFE_MARKDOWN_INSTANCE.convert(text))