xml($text)
Converts any text to valid XML
Example
<?php echo xml($page->text()) ?>