method
simple_format
v1.2.6 -
Show latest stable
- Class:
ActionView::Helpers::TextHelper
simple_format(text)public
Returns text transformed into HTML using simple formatting rules. Two or more consecutive newlines(\n\n) are considered as a paragraph and wrapped in <p> tags. One newline (\n) is considered as a linebreak and a <br /> tag is appended. This method does not remove the newlines from the text.