Re: textarea/display question...
| From: | Marek Kilimajer | Date: | Tue, 20 Jul 2004 21:49:05 +0000 |
| Subject: | Re: textarea/display question... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191240@lists.php.net to get a copy of this message | ||
bruce wrote:
$foo = '<table><tr><td class='red'>blah</td></tr></table>'; <textarea value='$foo'></textarea>Everything but one thing has been said: You should always use htmlspecialchars() to output value of textarea $foo = '<table><tr><td class='red'>blah</td></tr></table>'; echo '<textarea ...>' . htmlspecialchars($foo) . '</textarea>';