AtomParser::cdata() WordPress Method

The AtomParser::cdata() method is a simple parser for the Atom syndication format. It takes an input string and an array of options, and returns an array of data items.

AtomParser::cdata( $parser,  $data ) #


Source

File: wp-includes/atomlib.php

336
337
338
339
340
341
function cdata($parser, $data) {
    $this->_p("data: #" . str_replace(array("\n"), array("\\n"), trim($data)) . "#");
    if(!empty($this->in_content)) {
        array_push($this->in_content, $data);
    }
}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by the Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.