Module: ERB::Util

Defined in:
/Users/elia/Code/opal-docs/opal/stdlib/erb.rb

Class Method Summary collapse

Class Method Details

.hObject


12
13
14
# File '/Users/elia/Code/opal-docs/opal/stdlib/erb.rb', line 12

def html_escape(str)
  `return ("" + str).replace(escape_regexp, function (m) { return escapes[m] });`
end

.html_escape(str) ⇒ Object


8
9
10
# File '/Users/elia/Code/opal-docs/opal/stdlib/erb.rb', line 8

def html_escape(str)
  `return ("" + str).replace(escape_regexp, function (m) { return escapes[m] });`
end