class Decidim::DiffyExtension::UnescapedHtmlFormatter
HtmlFormatter that returns basic html output (no inline highlighting) and does not escape HTML tags.
Constants
- TAGS
We exclude the tags `del` and `ins` so the diffy styling does not apply.
Public Instance Methods
to_s()
click to toggle source
# File lib/decidim/diffy_extension.rb, line 12 def to_s str = wrap_lines(@diff.map { |line| wrap_line(line) }) ActionView::Base.new.sanitize(str, tags: TAGS) end