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

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

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Formatter



57
58
59
# File 'lib/redmine/wiki_formatting.rb', line 57

def initialize(text)
  @text = text
end

Instance Method Details

#to_html(*args) ⇒ Object



61
62
63
# File 'lib/redmine/wiki_formatting.rb', line 61

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