<commit_before># bb-ruby

bb-ruby is a [BBCode](http://www.bbcode.org) implementation for Ruby

## Usage

`require 'bb-ruby'`

Standard usage:
`output = BBRuby.to_html(bbcode_markup)`

Only allow certain tags:
`output = BBRuby.to_html(bbcode_markup, :enable, { :image, :bold, :quote })`

Disable certain tags:
`output = BBRuby.to_html(bbcode_markup, :disable, { :image, :bold, :quote })`

BBRuby has also been included directly into the String class for use on any string object:

`text = "[b]Here is some bold text[/b] followed by some [u]underlined text[/u]"`
`output = text.bbcode_to_html`
`text.bbcode_to_html!`


## Developers

* [<NAME>](http://github.com/cpjolicoeur)

## License

Copyright (c) 2008 <NAME> 

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:<commit_msg>README cleanup<commit_after># bb-ruby

bb-ruby is a [BBCode](http://www.bbcode.org) implementation for Ruby

## Usage

`require 'bb-ruby'`

Standard usage:

`output = BBRuby.to_html(bbcode_markup)`

Only allow certain tags:

`output = BBRuby.to_html(bbcode_markup, :enable, { :image, :bold, :quote })`

Disable certain tags:

`output = BBRuby.to_html(bbcode_markup, :disable, { :image, :bold, :quote })`

BBRuby has also been included directly into the String class for use on any string object:

`text = "[b]Here is some bold text[/b] followed by some [u]underlined text[/u]"`

`output = text.bbcode_to_html`

`text.bbcode_to_html!`


## Developers

* [<NAME>](http://github.com/cpjolicoeur)

## License

Copyright (c) 2008 <NAME> 

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
{'fraction_non_alphanumeric': 0.10834049871023216, 'fraction_numerical': 0.0034393809114359416, 'mean_word_length': 5.205333333333333, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2829347', 'n_tokens_mistral': 766, 'n_tokens_neox': 731, 'n_words': 276}