Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Converts BBCode to HTML. Gracefully handles invalid input. Built on Treetop.
Ruby
tag: 'v0.1.1'

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
MIT-LICENSE
README
Rakefile
VERSION
rbbcode.gemspec

README

RbbCode is a customizable Ruby library for parsing BB Code.

RbbCode validates and cleans input. It supports customizable schemas so you can set rules about what tags are allowed where. The default rules are designed to ensure valid HTML output.

Example usage:

require 'rubygems'
require 'rbbcode'

bb_code = 'This is [b]bold[/b] text'
parser = RbbCode::Parser.new
html = parser.parse(bb_code)
# => '<p>This is <strong>bold</strong> text</p>'
Something went wrong with that request. Please try again.