public function text($ele) { if (isset($ele->parentNode
) &&
isset($ele->parentNode->tagName
) && Elements::
isA($ele->parentNode->localName, Elements::TEXT_RAW
)) { $this->
wr($ele->data
);
return;
} // FIXME: This probably needs some flags set.
$this->
wr($this->
enc($ele->data
));
} public function cdata($ele) { // This encodes CDATA.
$this->
wr($ele->ownerDocument->
saveXML($ele));
} public function comment($ele) { // These produce identical output.