lib/erb_escape/encoder.rb
def encode_tag(_match, indicator, code, _tailch, rspace)
      start_tag = START_TAGS[indicator.to_s]
      end_tag = END_TAGS[indicator.to_s]
      escaped_code = CGI.escapeHTML(code)
      "#{start_tag}#{escaped_code}#{end_tag}#{rspace}"
    end
# The same Regexp used by Erubi, the default erb engine in Rails
The same Regexp used by Erubi, the default erb engine in Rails
The same Regexp used by Erubi the default erb engine in Rails
def encode_tag(_match, indicator, code, _tailch, rspace)
      start_tag = START_TAGS[indicator.to_s]
      end_tag = END_TAGS[indicator.to_s]
      escaped_code = CGI.escapeHTML(code)
      "#{start_tag}#{escaped_code}#{end_tag}#{rspace}"
    end
def encode_tag ( _match , indicator , code , _tailch , rspace ) start_tag = START_TAGS [ indicator . to_s ] end_tag = END_TAGS [ indicator . to_s ] escaped_code = CGI . escapeHTML ( code ) "#{start_tag}#{escaped_code}#{end_tag}#{rspace}" end
The same Regexp used by Erubi, the default erb engine in Rails
The same Regexp used by Erubi the default erb engine in Rails
_match
indicator
code
_tailch
rspace