xml($text)

Converts any text to valid XML

  • $text (string)
  • return (string)

Example

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

Is something missing or incorrect? Edit this page on Github…