Jay
JavaScript escaping.
Installation
Add this line to your application's Gemfile:
gem "jay"
And then execute:
$ bundle
Or install it yourself as:
$ gem install jay
Usage
require "jay"
Jay.j(%(back \\ not </closed> 'newline \n return \r "both \r\n))
# => "back \\\\ not <\\/closed> \\'newline \\n return \\n \\\"both \\n"
Contributing
Fork the project with:
$ git clone [email protected]:frodsan/jay.git
To install dependencies, use:
$ bundle install
To run the test suite, do:
$ rake test
For bug reports and pull requests use GitLab.
License
Jay is released under the MIT License.