<?xml version="1.0"?>
<?xml-stylesheet 
 href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/4961/bug">
    <title>PEAR Bug #4961</title>
    <link>http://pear.php.net/bugs/4961</link>
    <description>[Closed] Package echoes text with htmlentities()</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bugs/4961"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/4961/2005-08-01+10%3A53%3A30#2005-08-01+10%3A53%3A30"/>
     </rdf:Seq>
    </items>
  </channel>
    <item rdf:about="http://pear.php.net/bugs/4961">
      <title>jan.pieter.kunst@... [2005-08-01 10:39:53]</title>
      <link>http://pear.php.net/bugs/4961</link>
      <description><![CDATA[<pre>XML_SVG Bug
Reported by jan.pieter.kunst@...
2005-08-01T14:39:53-00:00
PHP: 5.0.4 OS: Mac OS X Package Version: 

Description:
------------
The printElement() method of the XML_SVG_Textpath wraps $this-&gt;_text in htmlentities(), but it should use htmlspecialchars(). (Named character entities like &amp;eacute; don't exist in XML by default.)

Test script:
---------------
patch for the SVG.php file:

--- /usr/local/php/lib/php/XML/SVG.php  Mon Jun 13 09:22:32 2005
+++ SVG.php     Mon Aug  1 16:31:19 2005
@@ -291,7 +291,7 @@
         echo '&lt;' . $element;
         $this-&gt;printParams('id', 'x', 'y', 'dx', 'dy', 'rotate',
                            'textLength', 'lengthAdjust', 'style', 'transform');
-        echo '&gt;' . htmlentities($this-&gt;_text);
+        echo '&gt;' . htmlspecialchars($this-&gt;_text);
         parent::printElement();
         echo &quot;&lt;/$element&gt;\n&quot;;
     }


Expected result:
----------------
I would expect to see accented letters as actual characters instead of named character entities in &lt;text&gt; elements.

Actual result:
--------------
Named character entities in &lt;text&gt; elements.</pre>]]></description>
      <content:encoded><![CDATA[<pre>XML_SVG Bug
Reported by jan.pieter.kunst@...
2005-08-01T14:39:53-00:00
PHP: 5.0.4 OS: Mac OS X Package Version: 

Description:
------------
The printElement() method of the XML_SVG_Textpath wraps $this-&gt;_text in htmlentities(), but it should use htmlspecialchars(). (Named character entities like &amp;eacute; don't exist in XML by default.)

Test script:
---------------
patch for the SVG.php file:

--- /usr/local/php/lib/php/XML/SVG.php  Mon Jun 13 09:22:32 2005
+++ SVG.php     Mon Aug  1 16:31:19 2005
@@ -291,7 +291,7 @@
         echo '&lt;' . $element;
         $this-&gt;printParams('id', 'x', 'y', 'dx', 'dy', 'rotate',
                            'textLength', 'lengthAdjust', 'style', 'transform');
-        echo '&gt;' . htmlentities($this-&gt;_text);
+        echo '&gt;' . htmlspecialchars($this-&gt;_text);
         parent::printElement();
         echo &quot;&lt;/$element&gt;\n&quot;;
     }


Expected result:
----------------
I would expect to see accented letters as actual characters instead of named character entities in &lt;text&gt; elements.

Actual result:
--------------
Named character entities in &lt;text&gt; elements.</pre>]]></content:encoded>
      <dc:date>2005-08-01T14:39:53-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/4961/2005-08-01+10%3A53%3A30#2005-08-01+10%3A53%3A30">
      <title>yunosh [2005-08-01 14:53]</title>
      <link>http://pear.php.net/bugs/4961#1122908010</link>
      <description><![CDATA[<pre>This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PEAR better.

I have also added an optional &quot;charset&quot; parameter to XML_SVG_Textpath to use in conjuction with the htmlspecialchars() call.</pre>]]></description>
      <content:encoded><![CDATA[<pre>This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PEAR better.

I have also added an optional &quot;charset&quot; parameter to XML_SVG_Textpath to use in conjuction with the htmlspecialchars() call.</pre>]]></content:encoded>
      <dc:date>2005-08-01T14:53:30-00:00</dc:date>
    </item>
</rdf:RDF>