strip blank spaces
This commit is contained in:
parent
9de917fb23
commit
38e5550241
|
@ -7,6 +7,6 @@ module MarkdownHelper
|
||||||
|
|
||||||
def strip_markdown(content)
|
def strip_markdown(content)
|
||||||
md = Redcarpet::Markdown.new(Redcarpet::Render::StripDown, MARKDOWN_OPTS)
|
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
|
||||||
end
|
end
|
Loading…
Reference in New Issue