public static function strip_comments($data)
	{
		$output = '';
		while (($start = strpos($data, '<!--')) !== false)
		{
			$output .= substr($data, 0, $start);
			if (($end = strpos($data, '-->', $start)) !== false)
			{
				$data = substr_replace($data, '', 0, $end + 3);
			}
			else
			{
				$data = '';
			}
		}
		return $output . $data;
	}
public static function strip_comments($data)
	{
		$output = '';
		while (($start = strpos($data, '<!--')) !== false)
		{
			$output .= substr($data, 0, $start);
			if (($end = strpos($data, '-->', $start)) !== false)
			{
				$data = substr_replace($data, '', 0, $end + 3);
			}
			else
			{
				$data = '';
			}
		}
		return $output . $data;
	}
public static function strip_comments ( $ data ) { $ output = '' ; while ( ( $ start = strpos ( $ data , '<!--' ) ) !== false ) { $ output .= substr ( $ data , 0 , $ start ) ; if ( ( $ end = strpos ( $ data , '-->' , $ start ) ) !== false ) { $ data = substr_replace ( $ data , '' , 0 , $ end + 3 ) ; } else { $ data = '' ; } } return $ output . $ data ; }
Strip HTML comments

@param string $data Data to strip comments from
@return string Comment stripped string
Strip HTML comments