# Bulk invitation log message contains raw HTML and is in a code block

**URL:** https://meta.discourse.org/t/bulk-invitation-log-message-contains-raw-html-and-is-in-a-code-block/62333
**Category:** Feature
**Created:** [2017年五月9日 04:36 UTC](https://meta.discourse.org/t/bulk-invitation-log-message-contains-raw-html-and-is-in-a-code-block/62333 "2017-05-09T04:36:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)
#### Post date: [2017年五月9日 04:36 UTC](https://meta.discourse.org/t/bulk-invitation-log-message-contains-raw-html-and-is-in-a-code-block/62333/1 "2017-05-09T04:36:22Z")

</div>

Once a set of invitations has been sent out in bulk, the message that’s sent as a result contains the log:

 ![](https://global.discourse-cdn.com/meta/original/3X/8/7/8722b6082743eea52a9a405982e83e91de733d4a.png)

As you can see in the screenshot, it’s fenced in a code block, and apostrophes are being interpreted as the start/end of strings, so you get runs of red and runs of black.

Additionally, the log itself contains HTML to bold the email addresses and provide a link to the user summary page, but this is unparsed and thus not particularly useful, instead just adding noise.

I would suggest that the log be output as is or as a list, and the HTML either stripped or interpreted.

---

<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: [2017年五月9日 05:47 UTC](https://meta.discourse.org/t/bulk-invitation-log-message-contains-raw-html-and-is-in-a-code-block/62333/2 "2017-05-09T05:47:07Z")

</div>

Normally we have

````
Here's the log:

```text

````

but @techapj omitted that in this case for some reason. I’ve added it back in.

This is all that is needed, anything else is up to @techapj

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2017年五月9日 12:23 UTC](https://meta.discourse.org/t/bulk-invitation-log-message-contains-raw-html-and-is-in-a-code-block/62333/3 "2017-05-09T12:23:58Z")

</div>

> [@barryvan](#):
>
> the log itself contains HTML to bold the email addresses and provide a link to the user summary page, but this is unparsed and thus not particularly useful, instead just adding noise.

Good point. I sanitized the error log via:

[https://github.com/discourse/discourse/commit/94683b33b815607abd39e2542db6c7dcf78e88c8](https://github.com/discourse/discourse/commit/94683b33b815607abd39e2542db6c7dcf78e88c8)

---

<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: [2017年五月9日 21:10 UTC](https://meta.discourse.org/t/bulk-invitation-log-message-contains-raw-html-and-is-in-a-code-block/62333/4 "2017-05-09T21:10:37Z")

</div>


