I'm adding the functionality to a site to output code in messages, I have a problem keeping the formatting that the code was entered in.
For example:
The code is being put through htmlspecialchar s() so that it will display, how can I keep the formatting when outputting this code?
For example:
Code:
<html>
<head>
<title>test</title>
</head>
<body>
test
</body>
</html>
Comment