From 5fe9de69f6457710b025443adb722da6e92df43f Mon Sep 17 00:00:00 2001 From: Niels Lange Date: Thu, 6 Oct 2022 23:52:42 +0700 Subject: [PATCH] Render HTML in description of active payment integrations (https://github.com/woocommerce/woocommerce-blocks/pull/7313) --- .../js/editor-components/external-link-card/index.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/woocommerce-blocks/assets/js/editor-components/external-link-card/index.tsx b/plugins/woocommerce-blocks/assets/js/editor-components/external-link-card/index.tsx index a96f0f6e5f0..3509b99b67f 100644 --- a/plugins/woocommerce-blocks/assets/js/editor-components/external-link-card/index.tsx +++ b/plugins/woocommerce-blocks/assets/js/editor-components/external-link-card/index.tsx @@ -4,6 +4,7 @@ import { __ } from '@wordpress/i18n'; import { Icon, external } from '@wordpress/icons'; import { VisuallyHidden } from '@wordpress/components'; +import { sanitizeHTML } from '@woocommerce/utils'; /** * Internal dependencies @@ -37,9 +38,12 @@ const ExternalLinkCard = ( { { title } { description && ( - - { description } - + ) }