# HTML tags in plaintext digest when missing a translation

**URL:** <https://meta.discourse.org/t/html-tags-in-plaintext-digest-when-missing-a-translation/68151>\
**Category:** Bug\
**Tags:** activity-summary\
**Created:** [8월 16, 2017, 11:36오전 UTC](https://meta.discourse.org/t/html-tags-in-plaintext-digest-when-missing-a-translation/68151 "2017-08-16T11:36:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Phyks](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@Phyks](https://meta.discourse.org/u/Phyks)\
**Post date:** [8월 16, 2017, 11:36오전 UTC](https://meta.discourse.org/t/html-tags-in-plaintext-digest-when-missing-a-translation/68151/1 "2017-08-16T11:36:35Z")

</div>

Hi,

I subscribed to digests on Discourse instances and read my emails in plaintext. Huge 👍 for having a really usable and readable plaintext version!

However, I recently discovered that some HTML tags were present in the digests when server lacks some translations. For instance, consider the unsubscribe link from the digest, translation is [here](https://github.com/discourse/discourse/blob/master/config/locales/server.en.yml#L2627), but is not available in the French locale.

Resulting email has following content in plaintext:

```plaintext
<span class="translation_missing" title="translation missing: fr.user_notifications.digest.unsubscribe">Unsubscribe</span>

```

with the unsubscribe link reference below. I would have expected it to be something like

```plaintext
Unsubscribe [3]

```

(where `[3]` is the reference of the unsubscribe link at the bottom of the email body).

Thanks!

---

_[View the full topic](https://meta.discourse.org/t/html-tags-in-plaintext-digest-when-missing-a-translation/68151)._
