Hallo Tobias K.,
$filename = "datei.html";
$fd = fopen ($filename, "r"); //http://www.php.net/manual/de/function.fopen.php
$contents = fread ($fd, filesize($filename)); //http://www.php.net/manual/de/function.fread.php
fclose ($fd); //http://www.php.net/manual/de/function.fclose.php
echo htmlspecialchars($contents); //http://www.php.net/manual/de/function.htmlspecialchars.php
wie wär's mit echo htmlspecialchars(implode("", file($filename))); ? ;)
Gruß,
dimde