BBCODE.JS
bbcode.js is a JavaScript BBCode parser and renderer written in CoffeeScript.
Ported from https://github.com/vishnevskiy/bbcodepy!
Usage
All common BBCode tags are supported by default.
Add new tags using CoffeeScript's awesome syntax!
var parser = @bbcodeParser;: ->attributes =src: @rendererstrip@getContenttruewidth: @params'width'or 420height: @params'height'or 315"<iframe frameborder=\"0\" allowfullscreen></iframe>"parserregisterTag'youtube'YoutubeTagvar html = parsertoHTML'[youtube width=420 height=315]http://www.youtube.com/embed/rWTa6OKgWlM[/youtube]'