Skip to content

Commit

Permalink
[#1747] Strip the markdown for htl allowed case
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jun 16, 2014
1 parent e445fec commit b4785c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -1613,7 +1613,7 @@ def render_markdown(data, auto_link=True, allow_html=False):
if not data:
return ''
if allow_html:
data = markdown(data, safe_mode=False)
data = markdown(data.strip(), safe_mode=False)
else:
data = RE_MD_HTML_TAGS.sub('', data.strip())
data = markdown(data, safe_mode=True)
Expand Down

0 comments on commit b4785c5

Please sign in to comment.