I am not sure if this is a listhandler issue, it may actually be a mailman issue but thought I would rule this out first.

I am using FCKeditor on my site and for empty lines it adds <p>&nbsp;</p>. In the plain text emails sent to the list the xhtml tags <p>,</p>, etc are filtered out but the character coding &nbsp; is not.

Does listhandler or drupal do any filtering when sending the mail or is that all done by mailman?

Comments

philipnet’s picture

Title: Character not being filtered in mail. » HTML entities not being filtered in output e-mail
Version: 5.x-1.0-beta2 » master
Component: Miscellaneous » Code
Assigned: Unassigned » philipnet
Category: support » bug

It would be Listhandler/Drupal converting the email before sending it to the list.

Let's see if drupal.org is immune to this:   ?
If you didn't see it, there was a non-breaking space encoded between the colon and question mark.

Listhandler calls the PHP function strip_tags before sending the email. In Drupal 6 there's the funky function drupal_html_to_text: http://api.drupal.org/api/function/drupal_html_to_text/6 which not only filters out tags, it decodes the HTML entities. But it's only in Drupal 6.

P.

philipnet’s picture

Version: master » 5.x-1.0-beta2

Drupal.org is immune to this, so maybe there's something I can borrow from Project Issue (or whatever) that will help.

Regards.

P.

philipnet’s picture

Status: Active » Fixed

Fixed in latest commit.
Please test.

P.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

rmyoung’s picture

Thanks Philip,
Filtering now working as expected.