You are here: Browse Railsplugins Format Chain
= FormatChain
This plugin enables you to do advanced formatting on a piece of text. Normally you would use this plugin to cleanup, filter and markup user input. Formatting is done by calling formatting methods through a proxy directly onto a String instance.
'FormatChain is for developers'.format.html_to_text.to_s #=> "FormatChain is for developers"
Start by reading the documentation for FormatChain::Formatter. When you want to create your own formatter look at the source code and consult FormatChain.
You can use ‘rake rdoc’ to create an HTML version of the documentation.
NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly