SproutCMS

This is the code documentation for the SproutCMS project

function richtext()

Make a chunk of plain text into HTML rich text
The text will be wrapped within a block element (default is a P tag)

Usage

string Text::richtext ( string $text [, string $block_elem ] );

Arguments

  1. string $text
    The original plain text
  2. string $block_elem = p
    The block element to use. Default is a P tag (i.e. 'p').
           Use null or empty string to get the result without it being wrapped in a tag.

Return value

  • string
    A HTML representation of the plain text