SimplePie_Misc::element_implode

Advertisement

Syntax Syntax

SimplePie_Misc::element_implode( $element )

Source Source

File: wp-includes/SimplePie/Misc.php

	{
		$full = "<$element[tag]";
		foreach ($element['attribs'] as $key => $value)
		{
			$key = strtolower($key);
			$full .= " $key=\"" . htmlspecialchars($value['data'], ENT_COMPAT, 'UTF-8') . '"';
		}
		if ($element['self_closing'])
		{
			$full .= ' />';
		}
		else
		{
			$full .= ">$element[content]</$element[tag]>";
		}
		return $full;
	}

Advertisement

Advertisement

Leave a Reply