SproutCMS

This is the code documentation for the SproutCMS project

class BbCode

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-16
**/
class NewClassName extends BbCode {
    
    /**
    * Convert an inline run of plain text into HTML.
    * 
    * Supports the following bbcode tags:
    *    [b] [i] [u] [s] [code] [url=...]
    **/
    public function inline (string $text, array $tags) {
        // Method code goes here
    }
    
    /**
    * Convert multi-line text into HTML, with support for bbcode.
    * The output will be surrounded by one or more P tags as appropriate
    **/
    public function block (string $text, array $tags) {
        // Method code goes here
    }
    
}
?>