PEAR is archived and read-only

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

Home » HTML » HTML_Safe » Bug #6900

HTML_Safe destroys formatting by moving end tags in the wrong places

Details

Submitted2006-02-23 08:29 UTC
Fromthomas at ekdahl dot no
Assignedmgocobachi
StatusAnalyzed
PackageHTML_Safe
PHP Version5.1.2
OSFedora Core 3
Roadmaps(Not assigned)

Comments

[2006-02-23 08:29 UTC] thomas at ekdahl dot no

Description:
------------
Hi.

We have started using HTML_Safe in our framework and notices some bugs:

<ol>
<li></li>
<li>/li>
<li></li>
</ol>

Which is valid code - is changed to:

<ol>
<li></li>
<li>
<li>
</li></li>
</ol>

Which does not look good.

The same for font tags around text

<font>
Text1
</font
Text2

Is changed to

<font>
Text1
Text2
</font

This destroys the layout, in fact and is critical.

[2006-02-23 09:41 UTC] thingol at php dot net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PEAR.

HTML_Safe cannot return "</font" (without ending >) under any circumstances.

Please, make more exact bugreport.