Code ID: 2
function makecode($txt)
{
$txt = htmlentities($txt);
$txt = str_replace("\r\n", "<br>", $txt);
$txt = str_replace("\n", "br", $txt);
$txt = str_replace(" ", " ", $txt);
return $txt;
}