12 lines
207 B
Ruby
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
|