Source for file html.php
Documentation is available at html.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
* HTML Parser class for the Finder indexer package.
* @package Joomla.Administrator
* Method to process HTML input and extract the plain text.
* @param string $input The input to process.
* @return string The plain text input.
// Strip invalid UTF-8 characters.
$input =
iconv("utf-8", "utf-8//IGNORE", $input);
// Strip all script tags.
$input =
preg_replace('#<script[^>]*>.*?</script>#si', ' ', $input);
// Deal with spacing issues in the input.
$input =
str_replace(array(' ', ' '), ' ', $input);
// Strip the tags from the input and decode entities.
Documentation generated on Tue, 19 Nov 2013 15:04:48 +0100 by phpDocumentor 1.4.3