MagpieRSS::feed_cdatapublicWP 1.0

Method of the class: MagpieRSS{}

No Hooks.

Returns

null. Nothing (null).

Usage

$MagpieRSS = new MagpieRSS();
$MagpieRSS->feed_cdata ( $p, $text );
$p(required)
.
$text(required)
.

MagpieRSS::feed_cdata() code WP 6.9.1

function feed_cdata ($p, $text) {

	if ($this->feed_type == ATOM and $this->incontent)
	{
		$this->append_content( $text );
	}
	else {
		$current_el = join('_', array_reverse($this->stack));
		$this->append($current_el, $text);
	}
}