This question already has an answer here:
I'm sending emails with Go, and I'm parsing both the subject and the HTML body from templates stored in a database.
For the subject I wouldn't want t.Parse()
to escape html entities since it isn't HTML, just plain text, but for the body this is exactly the behavior I want.
How do I do both in the same file?
</div>