django-oscar icon indicating copy to clipboard operation
django-oscar copied to clipboard

Notification body is rendered as plain text, but passed HTML in some cases

Open solarissmoke opened this issue 6 years ago • 1 comments

Issue Summary

The body for customer notifications are rendered as plain text in the detail view.

But we create notifications with HTML in the body - e.g., for stock alerts.

The resulting notifications are rendered with escaped HTML such as <a href="/catalogue/test-product_6/">test product</a> is back in stock.

We need to either allow HTML in the body, or ensure we don't provide it. We already allow HTML in the subject so it seems silly not to allow it in the body.

solarissmoke avatar Jan 15 '19 04:01 solarissmoke

I can confirm this bug is still present in 3.0. Also, some strings are not translated (or translatable) in the same template.

Screenshot 2021-02-04 at 12 59 00

krzysztofjeziorny avatar Feb 04 '21 12:02 krzysztofjeziorny

image this has been fixed

specialunderwear avatar Jun 09 '23 08:06 specialunderwear