Plugins - BBCodeizer
Add to favoritesBBCodeizer is a Rails plugin to translate BBCode to HTML. The main interface is provided through the helper method "bbcodeize." Use of it is as simple as passing a string to bbcodeize:
<%= bbcodeize post.body %>
You can also invoke the BBCodeizer directly without the helper:
render :text => BBCodeizer.bbcodeize(post.body)
All settings are centralized so you can very quickly deactivate any tag or modify the HTML that is generated. You can modify these settings by adding lines to the end of your environment.rb. For example:
# deactivate [color], [size], and [code] tags BBCodeizer.deactivate(:color, :size, :code)
These changes should be considered one-time configuration, e.g. tags cannot be deactivated then activated again.
http://agtools.rubyforge.org/bbcodeizer/
svn://rubyforge.org/var/svn/agtools/plugins/bbcodeizer
Rails' (MIT)
View Extensions
