PHP Class Horde_Text_Filter_Text2html, horde

Copyright 2002-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Chuck Hagenbuch ([email protected])
Author: Jan Schneider ([email protected])
Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Text_Filter_Base
Datei anzeigen Open project: horde/horde

Protected Properties

Property Type Description
$_params array Filter parameters.

Public Methods

Method Description
__construct ( array $params = [] ) Constructor.
preProcess ( mixed $text ) : string Executes any code necessary before applying the filter patterns.

Method Details

__construct() public method

Constructor.
public __construct ( array $params = [] )
$params array Parameters specific to this driver:
  • charset: (string) The charset to use for htmlspecialchars() calls.
  • class: (string) See Horde_Text_Filter_Linkurls::.
  • emails: (array) TODO
  • flowed: (string) For flowed text, the HTML blockquote tag to insert before each level.
  • linkurls: (array) TODO
  • parselevel: (integer) The parselevel of the output.
    • PASSTHRU: No action. Pass-through. Included for completeness.
    • SYNTAX: Allow full html, also do line-breaks, in-lining, syntax-parsing.
    • MICRO: Micro html (only line-breaks, in-line linking).
    • MICRO_LINKURL: Micro html (only line-breaks, in-line linking of URLS; no email addresses are linked).
    • NOHTML: No html (all stripped, only line-breaks).
    • NOHTML_NOBREAK: No html whatsoever, no line breaks added. Included for completeness.
  • space2html: (array) TODO

preProcess() public method

Executes any code necessary before applying the filter patterns.
public preProcess ( mixed $text ) : string
$text mixed The text before the filtering. Either a string or a Horde_Text_Flowed object (since 1.1.0).
return string The modified text.

Property Details

$_params protected_oe property

Filter parameters.
protected array $_params
return array