From 38e555024126ee0a0a582d7c27044a985ca7c7b5 Mon Sep 17 00:00:00 2001 From: nilsding Date: Mon, 12 Jan 2015 13:08:10 +0100 Subject: [PATCH] strip blank spaces --- app/helpers/markdown_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/markdown_helper.rb b/app/helpers/markdown_helper.rb index 8a164411..b385f696 100644 --- a/app/helpers/markdown_helper.rb +++ b/app/helpers/markdown_helper.rb @@ -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 \ No newline at end of file