Class: Forem::Formatters::RDiscount

Inherits:
Object
  • Object
show all
Defined in:
lib/forem/formatters/rdiscount.rb

Class Method Summary collapse

Class Method Details

.format(text) ⇒ Object



5
6
7
# File 'lib/forem/formatters/rdiscount.rb', line 5

def self.format(text)
  ::RDiscount.new(ERB::Util.h(text)).to_html.html_safe
end