/** * Convert HTML entities to plaintext * Rewritten in CB to use CB's own version of html_entity_decode where innexistant or buggy in < joomla 1.5 * * @deprecated 2.0 (kept for B/C with CBSubs 3.0.0), use \CBLib\Input\InjectionsFilter::getInstance()->decode( $source ) * * @param string $source * @return string Plaintext string */ function cb_html_entity_decode_all($source) { return InjectionsFilter::getInstance()->decode($source); }
/** * Method to be called by another php script. Processes for XSS and specified bad code. * @deprecated 2.0: use \CBLib\Input\Input::get() instead, or $value = \CBLib\Input\Get::clean( $value, \CBLib\Registry\GetterInterface::HTML ) * * @param mixed $source Input string/array-of-string to be 'cleaned' * @return mixed $source 'Cleaned' version of input parameter */ public function process($source) { return InjectionsFilter::getInstance($this->tagsArray, $this->attrArray, $this->tagsMethod, $this->attrMethod, $this->xssAuto)->process($source); }