public
Description: Adds simple_format_with_html, which behaves similar to the built in simple_format but leaves html sections alone.
Clone URL: git://github.com/josh/simple_formatter.git
Search Repo:
name age message
folder MIT-LICENSE Wed Jul 02 21:25:23 -0700 2008 Update copy [josh]
folder README Wed Jul 02 21:25:23 -0700 2008 Update copy [josh]
folder init.rb Wed Jul 02 18:49:44 -0700 2008 Refactor SimpleFormatter. Added format and unfo... [josh]
folder lib/ Wed Jul 16 19:55:13 -0700 2008 Fix for unclosed linebreaks [josh]
folder test/ Wed Jul 16 19:55:13 -0700 2008 Fix for unclosed linebreaks [josh]
README
SimpleFormatter
===============

Adds simple_format_with_html, which behaves similar to the built in simple_format but leaves html sections alone.


Example
=======

  simple_format_with_html("Text content\n\n<p>with html mixed in<p>")
    => "<p>Text content</p>\n\n<p>with html mixed in<p>"


Copyright (c) 2008 Joshua Peek, released under the MIT license