Module: ERB::Util

Defined in:
opal/stdlib/erb.rb

Class Method Summary collapse

Class Method Details

.hObject


12
13
14
# File 'opal/stdlib/erb.rb', line 12

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

.html_escape(str) ⇒ Object


8
9
10
# File 'opal/stdlib/erb.rb', line 8

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