Overview

Packages

  • Text
    • Filter

Classes

  • Horde_Text_Filter
  • Horde_Text_Filter_Base
  • Horde_Text_Filter_Bbcode
  • Horde_Text_Filter_Cleanascii
  • Horde_Text_Filter_Cleanhtml
  • Horde_Text_Filter_Dimsignature
  • Horde_Text_Filter_Emails
  • Horde_Text_Filter_Emoticons
  • Horde_Text_Filter_Environment
  • Horde_Text_Filter_Exception
  • Horde_Text_Filter_Highlightquotes
  • Horde_Text_Filter_Html2text
  • Horde_Text_Filter_JavascriptMinify
  • Horde_Text_Filter_JavascriptMinify_JsMin
  • Horde_Text_Filter_Linkurls
  • Horde_Text_Filter_Simplemarkup
  • Horde_Text_Filter_Space2html
  • Horde_Text_Filter_Tabs2spaces
  • Horde_Text_Filter_Text2html
  • Horde_Text_Filter_Translation
  • Horde_Text_Filter_Words
  • Horde_Text_Filter_Xss
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Text_Filter_Text2html

Turn text into HTML with varying levels of parsing. For no html whatsoever, use htmlspecialchars() instead.

Copyright 2002-2012 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.

Horde_Text_Filter_Base
Extended by Horde_Text_Filter_Text2html
Package: Text\Filter
Category: Horde
License: LGPL 2.1
Author: Chuck Hagenbuch chuck@horde.org
Author: Jan Schneider jan@horde.org
Author: Michael Slusarz slusarz@horde.org
Located at Horde/Text/Filter/Text2html.php
Methods summary
public
# __construct( array $params = array() )

Constructor.

Constructor.

Parameters

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

Overrides

Horde_Text_Filter_Base::__construct()
public string
# preProcess( mixed $text )

Executes any code necessary before applying the filter patterns.

Executes any code necessary before applying the filter patterns.

Parameters

$text
<p>The text before the filtering. Either a string or a Horde_Text_Flowed object (since 1.1.0).</p>

Returns

string
The modified text.

Overrides

Horde_Text_Filter_Base::preProcess()
Methods inherited from Horde_Text_Filter_Base
getPatterns(), postProcess()
Constants summary
integer PASSTHRU
# 0
integer SYNTAX
# 1
integer MICRO
# 2
integer MICRO_LINKURL
# 3
integer NOHTML
# 4
integer NOHTML_NOBREAK
# 5
API documentation generated by ApiGen