hi alll,
i have got this little problem: say I have a file with a html code in it, how would I be able to display de contents of the file without the webbrowers would take the html code and run it? 😃
thanks 🙂
Theres lots of ways to do it - here's one:
echo htmlentities(file_get_contents("file.html"));
could this allso be done with an array?
im assuming you have each line of the file in the array, if so you can try this:
foreach($filearray as $line) { echo htmlentities($line); }
yes, thank 😃, I fixed it 🙂 ---> resolved 🙂