SimplePie_Misc::strip_comments

Advertisement

Summery Summery

Strip HTML comments

Syntax Syntax

SimplePie_Misc::strip_comments( string $data )

Parameters Parameters

$data

(string) (Required) Data to strip comments from

Return Return

(string) Comment stripped string

Source Source

File: wp-includes/SimplePie/Misc.php

	{
		if (is_array($curl = curl_version()))
		{
			$curl = $curl['version'];
		}
		elseif (substr($curl, 0, 5) === 'curl/')
		{
			$curl = substr($curl, 5, strcspn($curl, "\x09\x0A\x0B\x0C\x0D", 5));
		}
		elseif (substr($curl, 0, 8) === 'libcurl/')
		{
			$curl = substr($curl, 8, strcspn($curl, "\x09\x0A\x0B\x0C\x0D", 8));
		}
		else
		{
			$curl = 0;
		}

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.