Re: Include " quotes inside textbox
| From: | Christian Reiniger | Date: | Fri, 02 Feb 2001 11:40:59 +0000 |
| Subject: | Re: Include " quotes inside textbox | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-37818@lists.php.net to get a copy of this message | ||
On Thursday 01 February 2001 19:07, Karl J. Stubsjoen wrote:
> I'm trying to pass back a link to the user in a textbox (so they can
> copy and paste it elsewhere), however my textbox is being parsed
> incorrectly by the browser because of the " quotes which happen in the
> link I'm passing - basically the HTML for the text box is getting
> parsed together with the HTML for the passed link and .... the results
> are messed up.
I think you want to use htmlentities ():
echo "<textarea name='foo' rows='20' cols='50'>" .
htmlentities ($Content) . "</textarea>";
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka", but "That's funny..."
- Isaac Asimov