Module: RuBB
- Defined in:
- lib/rubb.rb,
lib/rubb/node.rb,
lib/rubb/parser.rb,
lib/rubb/node/url.rb,
lib/rubb/node/text.rb,
lib/rubb/node/email.rb,
lib/rubb/node/image.rb,
lib/rubb/node/quote.rb,
lib/rubb/node/simple.rb,
lib/rubb/node/styled.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.parse(bbcode) ⇒ Object
3 4 5 |
# File 'lib/rubb.rb', line 3 def parse(bbcode) Parser.parse(Parser.escape_html(bbcode), nil) end |
.to_html(bbcode) ⇒ Object
7 8 9 |
# File 'lib/rubb.rb', line 7 def to_html(bbcode) parse(bbcode).to_html end |