Stripping all but a select few tags from an HTML file : fgetss « File Directory « PHP






Stripping all but a select few tags from an HTML file

 
<?
$fh = fopen("data.txt", "r");
$allowable = "<br>";
while (!feof($fh)) :
    print fgetss($fh, 2048, $allowable);
endwhile;
fclose($fh);
?>
  
  








Related examples in the same category

1.fgetss() strips all HTML and PHP tags from the file: string fgetss (int filepointer, int length [, string allowable_tags])
2.fgetss.php