Re: Problem displaying certain text from a form on to the browser

From: Date: Fri, 17 May 2002 19:41:28 +0000
Subject: Re: Problem displaying certain text from a form on to the browser
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-98178@lists.php.net to get a copy of this message
Clearly <test line> is being interpreted by the browser as an HTML tag. Use htmlspecialchars() to encode these characters in the string. Or find and replace "<" with "&lt;" and ">" with "&gt;". -Kevin ----- Original Message ----- From: "Don" <don@lclcan.com> To: "php list" <php-general@lists.php.net> Sent: Friday, May 17, 2002 1:12 PM Subject: [PHP] Problem displaying certain text from a form on to the browser Hi, On my form, I have a text area. I was doing some testing and on one line, I entered the following: <test line> When I looked at the results pages sent to the browser, that line was missing. I think that the "<" character is the culprit. I've tried stripslashes() and htmlentities() but I cannot get that line to appear on the browser. Any ideas? Thanks, Don

« previous php.general (#98178) next »