SproutCMS

This is the code documentation for the SproutCMS project

function block()

Convert multi-line text into HTML, with support for bbcode.
The output will be surrounded by one or more P tags as appropriate

Usage

string BbCode::block ( string $text [, array $tags ] );

Arguments

  1. string $text
    Plain text to convert
  2. array $tags = NULL
    Optional array of tags names (e.g. 'b') to process. Provide NULL for defaults (b, i, code, url)

Return value

  • string
    HTML