PHP Class Horde_Text_Filter_Cleanascii, horde

This function should NOT be used on non-ASCII text; it may and probably will butcher other character sets indescriminately. Use it only to clean US-ASCII (7-bit) text which you suspect (or know) may have invalid or non-printing characters in it. Copyright 2004-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: Jan Schneider ([email protected])
Inheritance: extends Horde_Text_Filter_Base
Datei anzeigen Open project: horde/horde

Public Methods

Method Description
getPatterns ( ) : array Returns a hash with replace patterns.
preProcess ( string $text ) : string Executes any code necessary before applying the filter patterns.

Method Details

getPatterns() public method

Returns a hash with replace patterns.
public getPatterns ( ) : array
return array Patterns hash.

preProcess() public method

Executes any code necessary before applying the filter patterns.
public preProcess ( string $text ) : string
$text string The text before the filtering.
return string The modified text.