original_string: 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;
  	}
code: 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;
  	}
code_tokens: 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 ; }
docstring: Strip HTML comments
  
  @param string $data Data to strip comments from
  @return string Comment stripped string
docstring_tokens: Strip HTML comments