PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am using file_get_contents() to read the contents of a file into a textarea, however I have discovered a small problem. Everytime the textarea tag is within the actual textarea itself it cuts off and the html starts displaying all over the page. Can someone please help here?.
Apply htmlentities() to the string before displaying it. This will change any angle brackets and other special HTML punctuation to the corresponding "words". i.e. "<" to < ">" to >