Class: Redmine::WikiFormatting::NullFormatter::Formatter

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::TagHelper, ActionView::Helpers::TextHelper, ActionView::Helpers::UrlHelper
Defined in:
lib/redmine/wiki_formatting.rb

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Formatter

Returns a new instance of Formatter



109
110
111
# File 'lib/redmine/wiki_formatting.rb', line 109

def initialize(text)
  @text = text
end

Instance Method Details

#to_html(*args) ⇒ Object



113
114
115
# File 'lib/redmine/wiki_formatting.rb', line 113

def to_html(*args)
  simple_format(auto_link(CGI::escapeHTML(@text)))
end