Module: Vidibus::Textile::Extensions::View

Extended by:
ActiveSupport::Concern
Defined in:
lib/vidibus/textile/extensions/view.rb

Instance Method Summary collapse

Instance Method Details

#stripped(string, options = {}) ⇒ Object

Returns plain text without markup. If option :plain is true, newlines will be removed.



9
10
11
# File 'lib/vidibus/textile/extensions/view.rb', line 9

def stripped(string, options = {})
  string ? Vidibus::Textile.new(string).to_text(options) : ""
end