Class: Redmine::WikiFormatting::NullFormatter::Formatter
- Inherits:
-
Object
- Object
- Redmine::WikiFormatting::NullFormatter::Formatter
- Includes:
- ActionView::Helpers::TagHelper, ActionView::Helpers::TextHelper, ActionView::Helpers::UrlHelper, LinksHelper
- Defined in:
- lib/redmine/wiki_formatting.rb
Constant Summary
Constants included from LinksHelper
Instance Method Summary collapse
-
#initialize(text) ⇒ Formatter
constructor
A new instance of Formatter.
- #to_html(*args) ⇒ Object
Methods included from LinksHelper
Constructor Details
#initialize(text) ⇒ Formatter
Returns a new instance of Formatter
175 176 177 |
# File 'lib/redmine/wiki_formatting.rb', line 175 def initialize(text) @text = text end |
Instance Method Details
#to_html(*args) ⇒ Object
179 180 181 182 183 184 |
# File 'lib/redmine/wiki_formatting.rb', line 179 def to_html(*args) t = CGI::escapeHTML(@text) auto_link!(t) auto_mailto!(t) simple_format(t, {}, :sanitize => false) end |