Re: MySql database data has html code in it
| From: | Paul Burney | Date: | Sun, 02 Sep 2001 02:30:43 +0000 |
| Subject: | Re: MySql database data has html code in it | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-12082@lists.php.net to get a copy of this message | ||
on 9/1/01 7:12 PM, CrossWalkCentral at support@crosswalkcentral.net wrote:
> Yea I tried that before I posted I even tried editing the data in the table
> to but the <pre> before and </pre> after and it still will not show it.
You need to encode the < and > characters. You can do so via the
htmlspecialchars() function.
<http://php.net/manual/en/function.htmlspecialchars.php>
Sincerely,
Paul Burney
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Paul Burney
Webmaster && Open Source Developer
UCLA -> GSE&IS -> ETU
(310) 825-8365
<webmaster@gseis.ucla.edu>
<http://www.gseis.ucla.edu/>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++