If you just want a plain-text representation of your (pre-formatted) string, you can wrap it in HTML <pre/>
tags and use htmlentities
to escape the angle brackets:
<?PHP echo '<pre>', htmlentities($string), '</pre>'; ?>
If you just want a plain-text representation of your (pre-formatted) string, you can wrap it in HTML <pre/>
tags and use htmlentities
to escape the angle brackets:
<?PHP echo '<pre>', htmlentities($string), '</pre>'; ?>