vintasoftware / django-templated-email

Django module to easily send templated emails using django templates, or using a transactional mail provider (mailchimp, silverpop, etc.)
MIT License
702 stars 130 forks source link

HTML is not autoescaped on html parts #109

Closed jbinary closed 3 years ago

jbinary commented 6 years ago

Curiously #108 says HTML is escaped for plaintext and subject while I found the opposite problem: HTML is not escaped for html part which is a real danger and is not mentioned in the doc?

My solution would be to autoescape everything at first but afterwards unescape those plaintext parts.

I've now deployed such a fix but would like it to go upstream instead of forking, would you accept such a PR?