Re: Converting a string to formatted html

From: Date: Mon, 27 Oct 2003 11:13:08 +0000
Subject: Re: Converting a string to formatted html
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167699@lists.php.net to get a copy of this message
Ian, PLEASE search the archives before asking the list -- this question is asked every couple of days, which is quite frustrating. See http://au.php,net/nl2br Justin French On Monday, October 27, 2003, at 09:15 PM, Ian Gray wrote:
Hi all, I know this can be done somehow but I am not sure. I have a form being submitted to a php file and I wanted a textfield to be converted to formatted html. At the moment none of the line breaks are being submitted and inverted commas have slashes. I know the slashes can be removed using stripslashes function. I thought line breaks would come through with \n but that isn't being transmitted over the form. Can anyone help?


« previous php.general (#167699) next »