protected function EasyRdf_Parser_RdfXml::cdataState6 in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/RdfXml.php \EasyRdf_Parser_RdfXml::cdataState6()
@ignore
1 call to EasyRdf_Parser_RdfXml::cdataState6()
- EasyRdf_Parser_RdfXml::cdataHandler in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ RdfXml.php - @ignore
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ RdfXml.php, line 762
Class
- EasyRdf_Parser_RdfXml
- A pure-php class to parse RDF/XML.
Code
protected function cdataState6($d) {
if ($s = $this
->getParentS()) {
if (isset($s['o_xml_data']) || preg_match('/[\\n\\r]/', $d) || trim($d)) {
$d = htmlspecialchars($d, ENT_NOQUOTES);
$s['o_xml_data'] = isset($s['o_xml_data']) ? $s['o_xml_data'] . $d : $d;
}
$this
->updateS($s);
}
}