method
simple_format
v1.1.6 -
Show latest stable
- Class:
ActionView::Helpers::TextHelper
simple_format(text)public
Returns text transformed into HTML using very simple formatting rules Surrounds paragraphs with <p> tags, and converts line breaks into <br/> Two consecutive newlines(\n\n) are considered as a paragraph, one newline (\n) is considered a linebreak, three or more consecutive newlines are turned into two newlines