xml($text)

Converts any text to valid XML

  • $text (string)
  • return (string)

Example

<?= xml($page->text()) ?>