Skip to content

Commit

Permalink
[#2375] Show markdown as lioteral in package list snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 7, 2012
1 parent e962619 commit d4d6306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -618,7 +618,7 @@ def markdown_extract(text, extract_length=190):
if (text is None) or (text.strip() == ''):
return ''
plain = re.sub(r'<.*?>', '', markdown(text))
return unicode(truncate(plain, length=extract_length, indicator='...', whole_word=True))
return literal(unicode(truncate(plain, length=extract_length, indicator='...', whole_word=True)))

def icon_url(name):
return url_for_static('/images/icons/%s.png' % name)
Expand Down

0 comments on commit d4d6306

Please sign in to comment.