bugman
09-24-2006, 11:03 AM
Okay, am I the only one having a problem with this? I have the following code:
$testHTML=<<<END
<html>
<head>
</head>
<body>
hi
</body>
</html>
END;
echo htmlspecialchars($testHTML);
Everything works except.... The HTML tags are all displayed in one line, not one line per tag as shown above. That could get pretty confusing with a large page. What am I doing wrong? Thanks.
$testHTML=<<<END
<html>
<head>
</head>
<body>
hi
</body>
</html>
END;
echo htmlspecialchars($testHTML);
Everything works except.... The HTML tags are all displayed in one line, not one line per tag as shown above. That could get pretty confusing with a large page. What am I doing wrong? Thanks.