PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Text » Text_Wiki » Bug #2096

Render/Xhtml/Code.php prints <code> tags incorrectly

Details

Submitted2004-08-09 16:51 UTC
Fromglamm at a-s-i dot com
Assignedpmjones
StatusClosed
PackageText_Wiki
PHP Version4.3.6
OSany
Roadmaps(Not assigned)

Comments

[2004-08-09 16:51 UTC] glamm at a-s-i dot com

Description:
------------
Code.php erroneously generates this Xhtml output:
<pre>
<code>
(html-escaped text here)
</code>
</pre>

At the very least, <code> and </code> should be HTML-escaped; in my opinion, adding <code></code> should either be dropped or be made an option. The (tested) patch at http://www.a-s-i.com/~glamm/Text_Wiki/Code.diff simply drops the <code></code> tags from the rendered output.

[2004-08-18 20:01 UTC] glamm at a-s-i dot com

Well, I guess I learn something every day.

You're correct, it is valid XHTML (for that matter it's probably valid HTML as well). My apologies! This bug is not actually a bug and should be closed.