Showing /textarea in a textarea tag
Posted on 2003-02-27
I've got an ASP page that will allow a user to edit or create text files. The page takes a filename, opens the file, and sticks the entire contents in a <textarea> so the user can edit it.
It works great until the page loads a file that has </textarea> tags in it (Say, an HMTML page). Then the textarea on the page will contain all the text up to the </textarea> tag in the file (which is SUPPOSED to be inside the textarea) and the rest of the text shown ends up being treated as actual HTML instead of being in the textarea.
Anyone know a way around this? I hope the explanation above makes sense.