module ERB::Util
def unwrapped_html_escape(s) # :nodoc:
Experimental RBS support (using type sampling data from the type_fusion
project).
def unwrapped_html_escape: ((String | ActionView::OutputBuffer | ActiveSupport::SafeBuffer) s) -> (String | ActionView::OutputBuffer)
This signature was generated using 31 samples from 1 application.
This method is not for public consumption! Seriously!
HTML escapes strings but doesn't wrap them with an ActiveSupport::SafeBuffer.
def unwrapped_html_escape(s) # :nodoc: s = s.to_s if s.html_safe? s else CGI.escapeHTML(ActiveSupport::Multibyte::Unicode.tidy_bytes(s)) end end