Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/hotspotlogin/extensions/string.rb

Instance Method Summary collapse

Instance Method Details

#escape_jsObject

Escape single quote for use in generated JavaScript



6
7
8
# File 'lib/hotspotlogin/extensions/string.rb', line 6

def escape_js
  gsub("'", "\\\\'")
end