Libraries
»
goat
(0.3.46)
»
Index (H)
»
Goat
»
HTMLHelpers
Module: Goat::HTMLHelpers
Includes:
Rack::Utils
Included in:
Component
,
ERBRunner
Defined in:
lib/goat.rb
Instance Method Summary
collapse
#
jsesc
(x) ⇒ Object
Instance Method Details
#
jsesc
(x) ⇒
Object
390
# File 'lib/goat.rb', line 390
def
jsesc
(
x
)
;
x
.
gsub
(
'
\\
'
,
'
\\\\\\
'
)
.
gsub
(
'
"
'
,
'
\"
'
)
;
end