Module: Goat::HTMLHelpers

Includes:
Rack::Utils
Included in:
Component, ERBRunner
Defined in:
lib/goat.rb

Instance Method Summary collapse

Instance Method Details

#jsesc(x) ⇒ Object



391
# File 'lib/goat.rb', line 391

def jsesc(x); x.gsub('\\', '\\\\\\').gsub('"', '\"'); end