fgetss

It returns line from file pointer and strip HTML tags

Example

<?php

$fp = @fopen(“test.txt”, “r”);

if ($fp) {

while (($content = fgetss($fp, 4096)) !== false) {

echo $content;

}

fclose($fp);

}

?>