Class Text_Filter_cleanascii

Description

Removes some common entities and high-ascii or otherwise nonstandard characters common in text pasted from Microsoft Word into a browser.

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.

$Horde: framework/Text_Filter/Filter/cleanascii.php,v 1.3.2.8 2009/01/06 15:23:42 jan Exp $

Copyright 2004-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Located in /Text_Filter/Filter/cleanascii.php (line 22)

Text_Filter
   |
   --Text_Filter_cleanascii
Method Summary
 array getPatterns ()
 string preProcess (string $text)
Variables

Inherited Variables

Inherited from Text_Filter

Text_Filter::$_params
Methods
getPatterns (line 49)

Returns a hash with replace patterns.

  • return: Patterns hash.
array getPatterns ()

Redefinition of:
Text_Filter::getPatterns()
Returns a hash with replace patterns.
preProcess (line 31)

Executes any code necessary before applying the filter patterns.

  • return: The modified text.
string preProcess (string $text)
  • string $text: The text before the filtering.

Redefinition of:
Text_Filter::preProcess()
Executes any code necessaray before applying the filter patterns.

Inherited Methods

Inherited From Text_Filter

 Text_Filter::Text_Filter()
 Text_Filter::factory()
 Text_Filter::filter()
 Text_Filter::getPatterns()
 Text_Filter::postProcess()
 Text_Filter::preProcess()

Documentation generated on Sun, 30 Jan 2011 05:15:47 +0000 by phpDocumentor 1.4.3