This ActiveRecord plugin saves formatted content (Markdown, Textile, HTML) after normalizing it.
Nando Vieira
gem "markup_attr", "~> 0.1.0"