Commit: 97d22a035fd5727a00ea03108026b4f6d4d73183

Author: Joël Perras | Date: 2010-03-05 17:52:57 -0500
Wrapping user-modifyable data in xml output with CDATA identifiers.
diff --git a/views/pastes/view.xml.php b/views/pastes/view.xml.php index 919b993..d4c62a1 100644 --- a/views/pastes/view.xml.php +++ b/views/pastes/view.xml.php @@ -1,9 +1,9 @@ <paste> <id><?=$paste->id; ?></id> <?php if ($paste->author): ?> - <author><?=$paste->author; ?></author> + <author><![CDATA[<?php echo$paste->author; ?>]]></author> <?php endif; ?> - <created><?=$paste->created; ?></created> - <language><?=$paste->language; ?></language> - <content><?=$paste->content; ?></content> + <created><?php echo $paste->created; ?></created> + <language><![CDATA[<?php echo $paste->language; ?>]]></language> + <content><![CDATA[<?=$paste->content; ?>]]></content> </paste> \ No newline at end of file