Re: HTML and slashes.

From: Date: Tue, 17 Apr 2001 15:45:55 +0000
Subject: Re: HTML and slashes.
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-48990@lists.php.net to get a copy of this message
use srtipslashes() before writing it to the file. Johannes ""Dddogbruce (@home.com)"" <ddogbruce@home.com> schrieb im Newsbeitrag news:3ADC6095.BF5F12B2@home.com... > > there is NO way of hiding the html from the user. > > the browser can't output otherwise. You can only > > try to make it difficult to get the source. > > I want to hide the HTML from the browser. If someone adds some malicious > code, or even <u></u> I don't want it to underline. > > > Where does the " 's " problem come in? More detail plz. > > Is it a part of a text? Then try htmlspecialchars() or > > htmlentities(). > > Say I right "Hiya, my name's Owen" on the submission part of the form. It'll > show up as "Hiya, my name\'s Owen" on the output (which is a .txt file.) > > HTH, > Owen > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#48990) next »