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

AI-generated summary

The bulk invitation log message contains raw HTML and is displayed in a code block, making it difficult to read. barryvan suggests that the log should be output as plain text or a list and the HTML either stripped or interpreted. codinghorror added the necessary formatting to display the log properly. techAPJ addressed the issue of the log containing unparsed HTML by sanitizing the error log via a GitHub commit.

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

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.

2 « J'aime »

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

3 « J'aime »

Good point. I sanitized the error log via:

https://github.com/discourse/discourse/commit/94683b33b815607abd39e2542db6c7dcf78e88c8

6 « J'aime »