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;".

----- Original Message -----
To: "php list" <[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 1:12 PM
Subject: [PHP] Problem displaying certain text from a form on to the browser


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?


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to