You are here: Re: [PHP] text editor « PHP « IT news, forums, messages
Re: [PHP] text editor

Posted by Chris Shiflett on 03/29/05 03:16

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация