- highlight_string: documentation ( source)
<?php
highlight_string('<?php phpinfo(); ?>');
echo PHP_EOL,PHP_EOL;
highlight_string('<?php echo \'<script>alert("xss");</script>\'; ?><script>alert(\'xss\');</script>');
echo PHP_EOL,PHP_EOL;
highlight_string('<script>alert(\'xss\');</script>');