A BBCode parser for MediaWiki written in JavaScript.


[b]Hello, World![/b]


<span style="font-weight: bold;">Hello, World!</span>

Code Edit

  * BBCode.js - A MediaWiki BBCode parser written in JavaScript.
  * Written by Benjamin Williams <Prince(ss) Platinum>
  * This work is licensed under the GNU General Public License v2.
  * Please keep the terms and conditions of the license in mind 
  * before remixing, altering, incorporating, or redistributing
  * this work.
  * Status: Incomplete.
//Initialize dev object if not already present = || {};
dev = {
    //Add BBCode parser to the dev namespace
    bbcode: function() {
        //Grab page content for processing
        var content = document.getElementById("WikiaPage").innerHTML;