Module: Banzai::Filter::OutputSafety

Included in:
ReferenceFilter, SyntaxHighlightFilter
Defined in:
lib/banzai/filter/output_safety.rb

Instance Method Summary collapse

Instance Method Details

#escape_once(html) ⇒ Object


6
7
8
# File 'lib/banzai/filter/output_safety.rb', line 6

def escape_once(html)
  html.html_safe? ? html : ERB::Util.html_escape_once(html)
end