strip blank spaces

This commit is contained in:
nilsding 2015-01-12 13:08:10 +01:00
parent 9de917fb23
commit 38e5550241
1 changed files with 1 additions and 1 deletions

View File

@ -7,6 +7,6 @@ module MarkdownHelper
def strip_markdown(content)
md = Redcarpet::Markdown.new(Redcarpet::Render::StripDown, MARKDOWN_OPTS)
CGI.unescape_html Sanitize.fragment(md.render(content), EVIL_TAGS)
CGI.unescape_html(Sanitize.fragment(md.render(content), EVIL_TAGS)).strip
end
end