RubyGems.org

make user input be valid xhtml and format it with gsub("\n", "<br/>") etc. you can partially allow some tags and don't escape them.

installgem install friendly_format
Authors

Lin Jen-Shin (aka godfat 真常)

9,549 total downloads 1,987 for this version
Owners

8c73dab2ecd23d5b5627a0235ae2f9b1

Gemfile
gem 'friendly_format', '~> 0.7.3'
Versions
  1. 0.7.3 January 12, 2010 (17.5 KB)
  2. 0.7.2 December 30, 2009 (17.5 KB)
  3. 0.7.1 August 5, 2009 (26 KB)
  4. 0.7.0 July 30, 2009 (26 KB)
  5. 0.6.1 April 4, 2009 (26 KB)
Show all versions (6 total)