how can assign a string with enough alignment to a variable?

A

Anonymous

Guest
is there any way to out the following HTML in its correct alignment as given below
<html>
<head>
</head>
<body>
<h1>heilp me</h1>
</body>
</html>
i used the following code but not getting the desired output

<?php
$htm=htmlspecialchars("<html>\n
<head>\n
</head>\n
<body>\n
<h1>help me</h1>\n
</body>\n
</html>");
echo $htm;
print $htm;
?>
 
Back
Top