I want to allow people to edit .html files that they have uploaded to my server. I use fopen and fread to echo the contents of the file to a <textarea>. The problem is that some of the files contain javascript and html. The javascript is echoed out OK thus:
<script language="javascript" type="text/javascript">
But strict html like this:
<script language="javascript" type="text/javascript">
Gets interpereted by the browser and displays in the <textarea> like this:
<script language="javascript" type="text/javascript">
Is there any way to force the <textarea> to display the raw html and not the interpereted (encoded?) html?
Any help would be greatly appreciated...
<script language="javascript" type="text/javascript">
But strict html like this:
<script language="javascript" type="text/javascript">
Gets interpereted by the browser and displays in the <textarea> like this:
<script language="javascript" type="text/javascript">
Is there any way to force the <textarea> to display the raw html and not the interpereted (encoded?) html?
Any help would be greatly appreciated...