# MEGA TRICK: HTML & CSS in Coda! (think custom invoices and reports)

**URL:** <https://connect.superhuman.com/t/mega-trick-html-css-in-coda-think-custom-invoices-and-reports/23809>\
**Category:** Tips and Hacks\
**Created:** [June 1, 2021, 9:12pm UTC](https://connect.superhuman.com/t/mega-trick-html-css-in-coda-think-custom-invoices-and-reports/23809 "2021-06-01T21:12:47Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Ian\_Nicholson](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/ian_nicholson/32/7561_2.png) [@Ian\_Nicholson](https://connect.superhuman.com/u/Ian_Nicholson)\
**Post date:** [July 26, 2021, 1:33am UTC](https://connect.superhuman.com/t/mega-trick-html-css-in-coda-think-custom-invoices-and-reports/23809/7 "2021-07-26T01:33:58Z")

</div>

Just wanted to chime in and share that I’m now using this trick to preview HTML emails going out from my Doc, and it’s awesome! Now I don’t have to send an email every time I tweak my email template to see if I got it right!

Note that I did have to substitute some XML code for things as follows (XML doesn’t quite like lone ampersands it seems):

```auto
...
thisRow.[Email Update Body]
  .Substitute("&nbsp;", "&#160;")
  .Substitute("&","&#038;")
...

```

---

_[View the full topic](https://connect.superhuman.com/t/mega-trick-html-css-in-coda-think-custom-invoices-and-reports/23809)._
