|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: kdye at ucsd dot edu
New email:
PHP Version: OS:


 [2003-07-12 21:48 UTC] kdye at ucsd dot edu
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="">blah</a>

This is returned in the XML as:
&lt;a href=&quot;http:/;&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="">blah</a>]]>

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


Add a Patch

Pull Requests

Add a Pull Request


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: Sun Feb 25 06:01:26 2024 UTC