jay

JavaScript escaping.

Usage

require "jay"

Jay.j(%(back \\ not </closed> 'newline \n return \r "both \r\n))
# => "back \\\\ not <\\/closed> \\'newline \\n return \\n \\\"both \\n"

Installation

$ gem install jay