mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-15 23:50:02 +01:00
strip blank spaces
This commit is contained in:
parent
9de917fb23
commit
38e5550241
1 changed files with 1 additions and 1 deletions
|
@ -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
|
Loading…
Reference in a new issue