lib/erb_escape/encoder.rb
def encode
      @str.gsub(REGEXP) do
        encode_tag(*Regexp.last_match.to_a)
      end
    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
      @str.gsub(REGEXP) do
        encode_tag(*Regexp.last_match.to_a)
      end
    end
def encode @str . gsub ( REGEXP ) do encode_tag ( * Regexp . last_match . to_a ) end 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