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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kdye at ucsd dot edu
New email:
PHP Version: OS:

 

 [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-2020 The PHP Group
All rights reserved.
Last updated: Fri Feb 21 16:01:27 2020 UTC