debian-mirror-gitlab/lib/banzai/filter/output_safety.rb
2019-07-07 11:18:12 +05:30

12 lines
207 B
Ruby

# frozen_string_literal: true
module Banzai
module Filter
module OutputSafety
def escape_once(html)
html.html_safe? ? html : ERB::Util.html_escape_once(html)
end
end
end
end