module UsefulHelpers::Helpers::TextHelper
Public Instance Methods
raw_or_simple_format(text)
click to toggle source
# File lib/useful_helpers/helpers/text_helper.rb, line 5 def raw_or_simple_format(text) text.include?("</p>") ? raw(text) : simple_format(text) end