RE: [PHP-DB] PHP and XML
| From: | Hutchins, Richard | Date: | Tue, 13 Aug 2002 12:18:05 +0000 |
| Subject: | RE: [PHP-DB] PHP and XML | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-21118@lists.php.net to get a copy of this message | ||
A question better suited for the php-general list, but check out:
http://www.php.net/manual/en/function.htmlspecialchars.php
and/or
http://www.php.net/manual/en/function.htmlentities.php
hth,
Rich
-----Original Message-----
From: Bernard [mailto:php@klein-singen.de]
Sent: Tuesday, August 13, 2002 5:53 AM
To: php-db@lists.php.net
Subject: [PHP-DB] PHP and XML
Hi,
I am new to this list and I hope that it is the right place for a question
which is plaguing me:
I am using successfully the PHP XML-parser. But I have one problem.
I like to include html tags into the texts and I don't want them to be
interpreted by the parser. But I can't prevent it. It tried < and &rt;,
but they get interpreted as "<" and ">", and so I get an error message
by the parser. I tried including the html stuff in comments, but then they
are completely lost, which is of course normal behaviour. I tried quoting
with
backslash, e.g. \<p\>, but in vain as well.
I would be very happy and thankful, if anybody could help me.
Best wishes
Bernard
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php