function tag(name, attrs, selfclosing) {
    if (this.disableTags > 0) {
        return;
    }
    this.buffer += "[" + name;
    if (attrs && attrs.length > 0) {
        var i = 0;
        var attrib;
        while ((attrib = attrs[i]) !== undefined) {
            if (attrib[0] == "tag_value") {
                this.buffer += '=' + attrib[1];
            }
            else {
                this.buffer += " " + attrib[0] + '="' + attrib[1] + '"';
            }
            i++;
        }
    }
    if (selfclosing) {
        this.buffer += " /";
    }
    this.buffer += "]";
    this.lastOut = "]";
}
// Helper function to produce a BBCode tag.
Helper function to produce a BBCode tag.
Helper function to produce a BBCode tag .
function tag(name, attrs, selfclosing) {
    if (this.disableTags > 0) {
        return;
    }
    this.buffer += "[" + name;
    if (attrs && attrs.length > 0) {
        var i = 0;
        var attrib;
        while ((attrib = attrs[i]) !== undefined) {
            if (attrib[0] == "tag_value") {
                this.buffer += '=' + attrib[1];
            }
            else {
                this.buffer += " " + attrib[0] + '="' + attrib[1] + '"';
            }
            i++;
        }
    }
    if (selfclosing) {
        this.buffer += " /";
    }
    this.buffer += "]";
    this.lastOut = "]";
}
function tag ( name , attrs , selfclosing ) { if ( this . disableTags > 0 ) { return ; } this . buffer += "[" + name ; if ( attrs && attrs . length > 0 ) { var i = 0 ; var attrib ; while ( ( attrib = attrs [ i ] ) !== undefined ) { if ( attrib [ 0 ] == "tag_value" ) { this . buffer += '=' + attrib [ 1 ] ; } else { this . buffer += " " + attrib [ 0 ] + '="' + attrib [ 1 ] + '"' ; } i ++ ; } } if ( selfclosing ) { this . buffer += " /" ; } this . buffer += "]" ; this . lastOut = "]" ; }
Helper function to produce a BBCode tag.
Helper function to produce a BBCode tag .