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_Xss

This filter attempts to make HTML safe for viewing. IT IS NOT PERFECT. If you enable HTML viewing, you are opening a security hole.

Filter parameters:

'charset' - (string) The charset of the text.
            DEFAULT: UTF-8
'noprefetch' - (boolean) Disable DNS pre-fetching? See:
               https://developer.mozilla.org/En/Controlling_DNS_prefetching
               DEFAULT: false
'return_document' - (string) If true, returns a full HTML representation of
                    the document.
                    DEFAULT: false (returns the contents contained inside
                             the BODY tag)
'return_dom' - (boolean) If true, return a Horde_Domhtml object instead of
               HTML text (overrides return_document).
               DEFAULT: false
'strip_styles' - (boolean) Strip style tags?
                 DEFAULT: true
'strip_style_attributes' - (boolean) Strip style attributes in all tags?
                           DEFAULT: true
Horde_Text_Filter_Base
Extended by Horde_Text_Filter_Xss
Package: Text\Filter
Category: Horde
License: LGPL 2.1
Author: Jan Schneider jan@horde.org
Author: Michael Slusarz slusarz@horde.org
Located at Horde/Text/Filter/Xss.php
Methods summary
public array
# getPatterns( )

Returns a hash with replace patterns.

Returns a hash with replace patterns.

Returns

array
Patterns hash.

Overrides

Horde_Text_Filter_Base::getPatterns()
public string|Horde_Domhtml
# postProcess( string $text )

Executes any code necessary after applying the filter patterns.

Executes any code necessary after applying the filter patterns.

Parameters

$text
The text after the filtering.

Returns

string|Horde_Domhtml

The modified text or a Domhtml object if the 'return_dom' parameter is set.

Throws

Exception

Overrides

Horde_Text_Filter_Base::postProcess()
Methods inherited from Horde_Text_Filter_Base
__construct(), preProcess()
API documentation generated by ApiGen