As we trust description_html (previously sanitized), direct use HTML

via the AngularsJS `bind-html` attribute.

This will display formatting and images.
This commit is contained in:
Jean-Baptiste Bellet
2023-01-26 17:44:51 +01:00
parent 85d9650903
commit 79320331c0

View File

@@ -9,7 +9,7 @@
%h3
%a{"ng-click" => "triggerProductModal()", href: 'javascript:void(0)'}
%span{"ng-bind" => "::product.name"}
%p.product-description{ng: {bind: "::product.description", click: "triggerProductModal()", show: "product.description.length"}}
%p.product-description{ng: {"bind-html": "::product.description_html", click: "triggerProductModal()", show: "product.description_html.length"}}
.product-producer
= t :products_from
%span