Undress
Easily convert back HTML to Textile, Greencloth.
require "undress/textile"
code =" <h1>Hello world!</h1>\n <p><strong>Hey!</strong> How is it going?</p>\n <h2>Supported Markup Languages so far:</h2>\n <ul>\n <li>Textile</li>\n <li>Greencloth</li>\n </ul>\n"
Undress(code).to_textile
Will produce
h1. Hello world!
*Hey!* How is it going?
h2. Supported Markup Languages so far:
* Textile
* Greencloth
Supported Markup Languages
- Textile
- Greencloth, see [http://we.riseup.net]
Get it
gem install zevarito-undress