SproutCMS

This is the code documentation for the SproutCMS project

function plain()

Make a chunk of valid HTML into plain text, and (optionally) limit the number of words.

Usage

string Text::plain ( string $html [, int $max_words ] );

Arguments

  1. string $html
    The original HTML
  2. int $max_words = 50
    The maximum number of words. Use 0 for no limit.

Return value

  • string
    Plain text