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
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:
MUST BE VALID
Solve the problem:
34 - 6 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 26 16:01:29 2024 UTC