Libraries
»
goat
(0.3.48)
»
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
391
# File 'lib/goat.rb', line 391
def
jsesc
(
x
)
;
x
.
gsub
(
'
\\
'
,
'
\\\\\\
'
)
.
gsub
(
'
"
'
,
'
\"
'
)
;
end