Source for file rtf.php
Documentation is available at rtf.php
* @package Joomla.Administrator
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* RTF Parser class for the Finder indexer package.
* @package Joomla.Administrator
* Method to process RTF input and extract the plain text.
* @param string $input The input to process.
* @return string The plain text input.
// Remove embedded pictures.
// Remove control characters.
$input =
str_replace(array('{', '}', "\\\n"), array(' ', ' ', "\n"), $input);
$input =
preg_replace('#\\\[\'a-zA-Z0-9]+#mis', ' ', $input);
Documentation generated on Tue, 19 Nov 2013 15:12:31 +0100 by phpDocumentor 1.4.3