How can I stop the result of file_get_contents [PHP] from being processed as HTML?
<p>I am using the PHP function <code>file_get_contents</code> to read and display the contents of some <code>.txt</code> files.</p>

<p>If the contents of the file is HTML code, how can I display this as a string instead of the page treating it as HTML?</p>

<p>My current code is something like this:</p>

<pre><code>&lt;?php
$load_desc = file_get_contents(/url/of/my/file.txt);
echo "&lt;div&gt;$load_desc&lt;/div&gt;"
?&gt;
</code></pre>

<p>which works fine if the file contents is plain text but, for example, if the contents contains <code>&lt;img&gt;</code> tags, an image will be displayed.</p>

<p>Sorry if this is really easy. I'm just starting out with PHP. </p>
