xml($text)

Converts any text to valid XML

  • $text (string)
  • return (string)

Example

<?php echo xml($page->text()) ?>