Contents sections now save as CDATA sections

This commit is contained in:
Némunaire 2012-02-05 13:41:04 +01:00
parent 9d8d0ce4e9
commit 92e135f5d6

View File

@ -156,8 +156,9 @@ class Paste
$xml->createElement("date", $this->date)); $xml->createElement("date", $this->date));
$xml_paste->appendChild( $xml_paste->appendChild(
$xml->createElement("ip", $this->ip)); $xml->createElement("ip", $this->ip));
$xml_paste->appendChild( $cnt = $xml->createElement("content");
$xml->createElement("content", $this->content)); $cnt->appendChild($xml->createCDATASection($this->content));
$xml_paste->appendChild($cnt);
if (!empty($this->crypt)) if (!empty($this->crypt))
$xml_paste->appendChild( $xml_paste->appendChild(