RubyGems.org

Usage: wrap_js_code('<script>alert('wrap me!');</script>') # => '<code><script>alert('wrap me!');</script></code>'

installgem install js-code-wrapper
Authors

dom1nga

4,329 total downloads 1,237 for this version
Owners

A43b1eb358f240e7b66db959655de83a

Gemfile
gem 'js-code-wrapper', '~> 0.1.3'
Versions
  1. 0.1.3 December 6, 2011 (6.5 KB)
  2. 0.1.2 November 29, 2011 (6.5 KB)
  3. 0.1.1 November 28, 2011 (6.5 KB)
  4. 0.1.0 November 27, 2011 (6 KB)