When running the following sample :


   require_once 'modules/filter/filter.module';
   $text = "<p>Essai  <br /> <br /> </p>";
   $text= _filter_autop($text);
   printf($text);

The result is : <p>Essai </p></p>

Which is quite note good because of the extra closing p.

Comments

sun’s picture

Title: Line break filter add extra p closing tags » Line break filter adds extra P closing tags
Version: 5.12 » 7.x-dev
falkendk’s picture

Can't recreate, my output is <p>Essai </p>

TR’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

I cannot reproduce this either. I get the same results as @falkendk:

localhost:~www$ drush php-eval 'var_dump(_filter_autop("<p>Essai  <br />  <br />  </p>"));'
string(14) "<p>Essai  </p>"

So while there are certainly a lot of bugs with _filter_autop(), this doesn't seem to be one of them.

I am closing this issue because no further information about how to reproduce the problem was provided by the original poster, nor has anyone else confirmed the problem in the 11+ years this issue has been opened.