english/libraries/joomla/filter/filterinput.php
/**
	 * Try to convert to plaintext
	 *
	 * @param   string  $source The source string.
	 *
	 * @return  string  Plaintext string
	 *
	 * @since   11.1
	 */
Try to convert to plaintext
@param   string  $source The source string.

@return  string  Plaintext string


Try to convert to plaintext @param string $source The source string . @return string Plaintext string
protected function _decode($source)
	{
		static $ttr;
		if(!is_array($ttr))
		{
			$trans_tbl = get_html_translation_table(HTML_ENTITIES);
			foreach($trans_tbl as $k => $v) {
				$ttr[$v] = utf8_encode($k);
			}
		}
		$source = strtr($source, $ttr);
		$source = preg_replace('/&#(\d+);/me', "utf8_encode(chr(\\1))", $source); 
		$source = preg_replace('/&#x([a-f0-9]+);/mei', "utf8_encode(chr(0x\\1))", $source); 
		return $source;
	}
protected function _decode ( $ source ) { static $ ttr ; if ( ! is_array ( $ ttr ) ) { $ trans_tbl = get_html_translation_table ( HTML_ENTITIES ) ; foreach ( $ trans_tbl as $ k => $ v ) { $ ttr [ $ v ] = utf8_encode ( $ k ) ; } } $ source = strtr ( $ source , $ ttr ) ; $ source = preg_replace ( '/&#(\d+);/me' , " utf8_encode(chr( \\ 1)) " , $ source ) ; $ source = preg_replace ( '/&#x([a-f0-9]+);/mei' , " utf8_encode(chr(0x \\ 1)) " , $ source ) ; return $ source ; }
Try to convert to plaintext
 @param   string  $source The source string.
Try to convert to plaintext @param string $source The source string .
// Entity decode // Convert decimal // decimal notation // Convert hex // hex notation