Contents sections now save as CDATA sections
This commit is contained in:
parent
9d8d0ce4e9
commit
92e135f5d6
@ -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(
|
||||||
|
Reference in New Issue
Block a user