php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24632 Wishlist: XML_sql2xml support for CDATA
Submitted: 2003-07-12 21:48 UTC Modified: 2003-07-13 07:29 UTC
From: kdye at ucsd dot edu Assigned:
Status: Not a bug Package: PEAR related
PHP Version: Irrelevant OS: Linux 2.4.19-4, Debian
Private report: No CVE-ID: None
 [2003-07-12 21:48 UTC] kdye at ucsd dot edu
Description:
------------
XML_sql2xml needs support for CDATA in XML elements, so that HTML can be stored in the DB and then passed to XSL stylesheets.

This is stored in a DB:
<a href="http://some.url.com">blah</a>

This is returned in the XML as:
&lt;a href=&quot;http:/soem.url.com&quot;&gt;blah&lt;/a&gt;
(with the html entities escaped...) which is correct

BUT there is no way to enable the following to be returned:
<![CDATA[[<a href="http://some.url.com">blah</a>]]>

which is necessary to display snippets of HTML from a DB through XSL...



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-13 07:29 UTC] kdye at ucsd dot edu
Apologies... this is easily cleared up with:
<xsl:value-of select="whatever" disable-output-escaping="yes" />
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 04:01:27 2024 UTC