mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user