Sorry, that's a really stupid subject. Here's what I'm doing: I'm reading a text file using fread, with the following code:
$file = "file.txt";
$log_file = fopen($file, "r");
$file_contents = fread($log_file, filesize($file));
echo(nl2br(htmlspecialchars($file_contents)));
fclose($log_file);
This works great. Only problem is, I want to allow some html code to be interpreted, and of course, htmlspecialchars is preventing any from being interpreted at all. Specifically, I want it to display <b> and <i> tags. But I don't want any other html code to be read, which is making this a little difficult. Any suggestions on how to go about this?