forwardemail / email-templates

Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
https://forwardemail.net/docs/send-emails-with-node-js-javascript
MIT License
3.67k stars 337 forks source link

html entities in subject #341

Closed nloui closed 5 years ago

nloui commented 5 years ago

Hi there,

I've noticed that messages getting sent out using a subject.pug email template have html entities in them (ie if there's a " it converts it into a "e;). Any suggestions on how to resolve this? I've tried to build in a replace " with " within the pug template but the conversion must be happening somewhere later on.

Thanks!

vigandrei commented 5 years ago

I have the same issue. I'm not able to disable html entities in the subject. Any updates on this?

niftylettuce commented 5 years ago

Does changing the file's contents from = 'Something' to != 'Something &' work?

On Thu, Jan 24, 2019 at 3:55 AM vigandrei notifications@github.com wrote:

I have the same issue. I'm not able to disable html entities in the subject. Any updates on this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/niftylettuce/email-templates/issues/341#issuecomment-457136403, or mute the thread https://github.com/notifications/unsubscribe-auth/AAf7hb5J_LarRgaXfC0n-C7ZpJNyLRMVks5vGYMZgaJpZM4ZbTlf .

nateq314 commented 5 years ago

@niftylettuce's solution worked for me. Why isn't this in the Pug documentation???

niftylettuce commented 5 years ago

it is https://pugjs.org/language/attributes.html#unescaped-attributes