english/libraries/joomla/filter/filteroutput.php
/**
	* Makes an object safe to display in forms
	*
	* Object parameters that are non-string, array, object or start with underscore
	* will be converted
	*
	* @param   object    &$mixed        An object to be parsed
	* @param   integer   $quote_style   The optional quote style for the htmlspecialchars function
	* @param   mixed     $exclude_keys  An optional string single field name or array of field names not
	*                                   to be parsed (eg, for a textarea)
	* @since   11.1
	*/
Makes an object safe to display in forms
Object parameters that are non-string, array, object or start with underscore
will be converted

@param   object    &$mixed        An object to be parsed
@param   integer   $quote_style   The optional quote style for the htmlspecialchars function
@param   mixed     $exclude_keys  An optional string single field name or array of field names not
to be parsed
@since   11.1
Makes an object safe to display in forms Object parameters that are non - string array object or start with underscore will be converted @param object &$mixed An object to be parsed @param integer $quote_style The optional quote style for the htmlspecialchars function @param mixed $exclude_keys An optional string single field name or array of field names not to be parsed @since 11 . 1
public static function objectHTMLSafe(&$mixed, $quote_style=ENT_QUOTES, $exclude_keys='')
	{
		if (is_object($mixed))
		{
			foreach (get_object_vars($mixed) as $k => $v)
			{
				if (is_array($v) || is_object($v) || $v == NULL || substr($k, 1, 1) == '_') {
					continue;
				}
				if (is_string($exclude_keys) && $k == $exclude_keys) {
					continue;
				} else if (is_array($exclude_keys) && in_array($k, $exclude_keys)) {
					continue;
				}
				$mixed->$k = htmlspecialchars($v, $quote_style, 'UTF-8');
			}
		}
	}
public static function objectHTMLSafe ( & $ mixed , $ quote_style = ENT_QUOTES , $ exclude_keys = '' ) { if ( is_object ( $ mixed ) ) { foreach ( get_object_vars ( $ mixed ) as $ k => $ v ) { if ( is_array ( $ v ) || is_object ( $ v ) || $ v == NULL || substr ( $ k , 1 , 1 ) == '_' ) { continue ; } if ( is_string ( $ exclude_keys ) && $ k == $ exclude_keys ) { continue ; } else if ( is_array ( $ exclude_keys ) && in_array ( $ k , $ exclude_keys ) ) { continue ; } $ mixed -> $ k = htmlspecialchars ( $ v , $ quote_style , 'UTF-8' ) ; } } }
Makes an object safe to display in forms
 Object parameters that are non-string, array, object or start with underscore
 will be converted
Makes an object safe to display in forms Object parameters that are non - string array object or start with underscore will be converted