# Digest preview html view not working

**URL:** <https://meta.discourse.org/t/digest-preview-html-view-not-working/59700>\
**Category:** Bug\
**Tags:** activity-summary\
**Created:** [22 maart 2017 om 17:28 UTC](https://meta.discourse.org/t/digest-preview-html-view-not-working/59700 "2017-03-22T17:28:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [22 maart 2017 om 17:28 UTC](https://meta.discourse.org/t/digest-preview-html-view-not-working/59700/1 "2017-03-22T17:28:48Z")

</div>

It looks like the html view for the digest preview is not working:

 ![](https://global.discourse-cdn.com/meta/original/3X/2/1/2174072ce1f10c9744b71f25320d82c039679de0.png)

The text view appears to work fine:

 ![](https://global.discourse-cdn.com/meta/original/3X/1/6/164fb182c23fbc9b9048a080887c54c89207da6c.png)

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [22 maart 2017 om 19:49 UTC](https://meta.discourse.org/t/digest-preview-html-view-not-working/59700/2 "2017-03-22T19:49:53Z")

</div>

Works fine here on meta.

---

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [22 maart 2017 om 19:52 UTC](https://meta.discourse.org/t/digest-preview-html-view-not-working/59700/3 "2017-03-22T19:52:53Z")

</div>

That screenshot is from meta 😕

…

Ohhh it works in chrome, but not firefox.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [22 maart 2017 om 23:26 UTC](https://meta.discourse.org/t/digest-preview-html-view-not-working/59700/4 "2017-03-22T23:26:59Z")

</div>

Hmm why would this not work in Firefox? Odd cc @eviltrout but not remotely urgent.

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [27 maart 2017 om 18:42 UTC](https://meta.discourse.org/t/digest-preview-html-view-not-working/59700/6 "2017-03-27T18:42:48Z")

</div>

It looks like using a `src` with a `data` attribute you’re limited to 32k, and our new digest email was much bigger. Using `srcDoc` seems to fix it:

[https://github.com/discourse/discourse/commit/1d478a97dbb2d43dcc837c8dd0a976681c33bba8](https://github.com/discourse/discourse/commit/1d478a97dbb2d43dcc837c8dd0a976681c33bba8)

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [27 maart 2017 om 18:43 UTC](https://meta.discourse.org/t/digest-preview-html-view-not-working/59700/7 "2017-03-27T18:43:03Z")

</div>


