Home » Text » Text_Wiki » Bug #2096
Render/Xhtml/Code.php prints <code> tags incorrectly
Details
| Submitted | 2004-08-09 16:51 UTC |
|---|---|
| From | glamm at a-s-i dot com |
| Assigned | pmjones |
| Status | Closed |
| Package | Text_Wiki |
| PHP Version | 4.3.6 |
| OS | any |
| 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.