Plugins - BBCodeizer

StarAdd to favorites

BBCodeizer 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)

  • Currently 3.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

View Extensions

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?