src/classes/CCStr.php
public static function htmlentities( $string, $recursive = false ) 
	{	
		if ( is_array( $string ) ) 
		{
			foreach( $string as $key => $item ) 
			{	
				if ( $recursive ) 
				{	
					if ( is_array( $item ) ) 
					{
						$string[$key] = static::htmlentities( $item, $recursive );
					}
				}

				if ( is_string( $item ) ) 
				{
					$string[$key] = htmlentities( $item );
				}
			}

			return $string;
		}

		return htmlentities( $string, ENT_QUOTES, ClanCats::$config->charset );
	}
public static function htmlentities( $string, $recursive = false ) 
	{	
		if ( is_array( $string ) ) 
		{
			foreach( $string as $key => $item ) 
			{	
				if ( $recursive ) 
				{	
					if ( is_array( $item ) ) 
					{
						$string[$key] = static::htmlentities( $item, $recursive );
					}
				}

				if ( is_string( $item ) ) 
				{
					$string[$key] = htmlentities( $item );
				}
			}

			return $string;
		}

		return htmlentities( $string, ENT_QUOTES, ClanCats::$config->charset );
	}
public static function htmlentities ( $ string , $ recursive = false ) { if ( is_array ( $ string ) ) { foreach ( $ string as $ key => $ item ) { if ( $ recursive ) { if ( is_array ( $ item ) ) { $ string [ $ key ] = static :: htmlentities ( $ item , $ recursive ) ; } } if ( is_string ( $ item ) ) { $ string [ $ key ] = htmlentities ( $ item ) ; } } return $ string ; } return htmlentities ( $ string , ENT_QUOTES , ClanCats :: $ config -> charset ) ; }
Does the same as the PHP native htmlentities function but you can pass arrays.

@param string|array			$string
@param bool					$recursive
@return string|array
Does the same as the PHP native htmlentities function but you can pass arrays .