|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
39 - 7 = ?
Subscribe to this entry?

 [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