Documentation

Horde_Text_Filter_Space2html extends Horde_Text_Filter_Base
in package

The space2html filter converts horizontal whitespace to HTML code.

Parameters:

encode     -- HTML encode the text?  Defaults to false.
charset    -- Charset of the text.  Defaults to ISO-8859-1.
encode_all -- Replace all spaces with  ?  Defaults to false.

Copyright 2001-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Tags
author

Jan Schneider jan@horde.org

author

Mathieu Arnold mat@mat.cc

category

Horde

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

$_params  : array<string|int, mixed>
Filter parameters.
__construct()  : mixed
Constructor.
getPatterns()  : array<string|int, mixed>
Returns a hash with replace patterns.
postProcess()  : string
Executes any code necessaray after applying the filter patterns.
preProcess()  : string
Executes any code necessary before applying the filter patterns.

Properties

$_params

Filter parameters.

protected array<string|int, mixed> $_params = array('charset' => 'ISO-8859-1', 'encode' => \false, 'encode_all' => \false)

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $params = array() ]) : mixed
Parameters
$params : array<string|int, mixed> = array()

Any parameters that the filter instance needs.

Return values
mixed

getPatterns()

Returns a hash with replace patterns.

public getPatterns() : array<string|int, mixed>
Return values
array<string|int, mixed>

Patterns hash.

postProcess()

Executes any code necessaray after applying the filter patterns.

public postProcess(string $text) : string
Parameters
$text : string

The text after the filtering.

Return values
string

The modified text.

preProcess()

Executes any code necessary before applying the filter patterns.

public preProcess(string $text) : string
Parameters
$text : string

The text before the filtering.

Return values
string

The modified text.

Search results