public
Description: Formats and escapes database text for safe use in Ruby on Rails views
Homepage:
Clone URL: git://github.com/ryanlowe/easy_format.git
ryanlowe (author)
Sun Jun 01 09:29:40 -0700 2008
commit  000019d1442c913fb209c6287171e3c05e4b1189
tree    1b7b4c86d1b199a0219c6e842fccdd9824febed5
parent  d30eca6980e09e7a9a803804c66bb5bf5c29a033
README
Hosted at GitHub since May 1, 2008
http://github.com/ryanlowe/easy_format

Was hosted at RubyForge
http://rubyforge.org/projects/simple-format/

= easy_format

  easy_format is a Ruby on Rails plugin that formats and escapes
  database text for HTML views. The result looks a lot like text in
  Gmail: line breaks are converted and HTTP links are linked up.
  
  It will not support tags like BBCode; it just formats plain text.

== Installation

  gem install ryanlowe-easy_format --source http://gems.github.com/

== Usage

  <%= EasyFormat.format(@post.body) %>
  
  Note: HTML brackets are escaped by format() so
  you do not need to use h() as well.