-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Theo Van Dinter writes:
> On Wed, Jan 25, 2006 at 02:48:59AM -0000, [EMAIL PROTECTED] wrote:
> > +  # bug 4695: we want "<br/>" to be treated the same as "<br>", and
> > +  # the HTML::Parser API won't do it for us
> > +  # if ($self->{preclean_empty_elements}) {
> > +  $text =~ s/<br\s*\/>/<br>/gis;
> > +  # }
> 
> I think we need to be more generic, handling any /\s*\/>/ --
> the same problem occurs with other tags such as "<p/>", etc.
> A still-not-100%-but-closer version would be:
> 
> $text =~ s@<([^>]*)\s*/>@<$1>@g;

worth a try; I can't see any reason why not.

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Exmh CVS

iD8DBQFD171sMJF5cimLx9ARAnjEAJ9LVKjei1PEoQoEGG4ZqwYmGO3+BACfZ2Vh
ANI5N5o0ubYdn4+dkF6UKww=
=4ZmE
-----END PGP SIGNATURE-----

Reply via email to