lib/bade/runtime/render_binding.rb
# Escape input text with html escapes
#
# @param [String] text
#
# @return [String]
#
Escape input text with html escapes
Escape input text with html escapes
def __html_escaped(text)
        return nil if text.nil?
        text.gsub('&', '&amp;')
            .gsub('<', '&lt;')
            .gsub('>', '&gt;')
            .gsub('"', '&quot;')
      end
def __html_escaped ( text ) return nil if text . nil? text . gsub ( '&' , '&amp;' ) . gsub ( '<' , '&lt;' ) . gsub ( '>' , '&gt;' ) . gsub ( '"' , '&quot;' ) end
Escape input text with html escapes
Escape input text with html escapes
None
String
text
None