HTML entities not being filtered in output e-mail
rmyoung - July 20, 2008 - 08:19
| Project: | Listhandler |
| Version: | 5.x-1.0-beta2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | philipnet |
| Status: | closed |
Jump to:
Description
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> </p>. In the plain text emails sent to the list the xhtml tags <p>,</p>, etc are filtered out but the character coding is not.
Does listhandler or drupal do any filtering when sending the mail or is that all done by mailman?

#1
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.
#2
Drupal.org is immune to this, so maybe there's something I can borrow from Project Issue (or whatever) that will help.
Regards.
P.
#3
Fixed in latest commit.
Please test.
P.
#4
Automatically closed -- issue fixed for two weeks with no activity.
#5
Thanks Philip,
Filtering now working as expected.