Re: text editor
| From: | Chris Shiflett | Date: | Tue, 29 Mar 2005 00:16:56 +0000 |
| Subject: | Re: text editor | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211740@lists.php.net to get a copy of this message | ||
Tim Traver wrote:
I use a basic html textarea to show the contents of the file, and let them edit it, and then save it to disk. I've just realized that when editing an html file, that everything is ok, unless the file has a textarea tag in it. Then the editing textarea tag gets closed, and you end up not getting all of the data to save Any way to work around this and still use simple forms?You should really always escape your output, and this means htmlentities() when you're sending data to the client. (Escaping doesn't actually modify data once it has been received. Rather, it preserves it.) Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/