jodd

JavaScript escaping.

Usage

require "jodd"

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

Installation

$ gem install jodd