\Horde_Text_Filter_Cleanhtml

This filter attempts to sanitize HTML by cleaning up malformed HTML tags.

Parameters:

  • body_only: (boolean) Only return the body data? DEFAULT: Return the whole HTML document
  • charset: (string) Charset of the data. DEFAULT: UTF-8
  • size: (integer) Only filter if data is below this size. DEFAULT: No default

Summary

Methods
Properties
Constants
__construct()
preProcess()
getPatterns()
postProcess()
No public properties found
No constants found
No protected methods found
$_params
N/A
No private methods found
No private properties found
N/A

Properties

$_params

$_params : array

Filter parameters.

Type

array

Methods

__construct()

__construct(array  $params = array()) 

Constructor.

Parameters

array $params

Any parameters that the filter instance needs.

preProcess()

preProcess(string  $text) : string

Executes any code necessaray before applying the filter patterns.

Parameters

string $text

The text before the filtering.

Returns

string —

The modified text.

getPatterns()

getPatterns() : array

Returns a hash with replace patterns.

Returns

array —

Patterns hash.

postProcess()

postProcess(string  $text) : string

Executes any code necessary after applying the filter patterns.

Parameters

string $text

The text after the filtering.

Returns

string —

The modified text.