Render HTML in description of active payment integrations (https://github.com/woocommerce/woocommerce-blocks/pull/7313)
This commit is contained in:
parent
aefcf65dd8
commit
5fe9de69f6
|
@ -4,6 +4,7 @@
|
||||||
import { __ } from '@wordpress/i18n';
|
import { __ } from '@wordpress/i18n';
|
||||||
import { Icon, external } from '@wordpress/icons';
|
import { Icon, external } from '@wordpress/icons';
|
||||||
import { VisuallyHidden } from '@wordpress/components';
|
import { VisuallyHidden } from '@wordpress/components';
|
||||||
|
import { sanitizeHTML } from '@woocommerce/utils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
|
@ -37,9 +38,12 @@ const ExternalLinkCard = ( {
|
||||||
{ title }
|
{ title }
|
||||||
</strong>
|
</strong>
|
||||||
{ description && (
|
{ description && (
|
||||||
<span className="wc-block-editor-components-external-link-card__description">
|
<span
|
||||||
{ description }
|
className="wc-block-editor-components-external-link-card__description"
|
||||||
</span>
|
dangerouslySetInnerHTML={ {
|
||||||
|
__html: sanitizeHTML( description ),
|
||||||
|
} }
|
||||||
|
></span>
|
||||||
) }
|
) }
|
||||||
</span>
|
</span>
|
||||||
<VisuallyHidden as="span">
|
<VisuallyHidden as="span">
|
||||||
|
|
Loading…
Reference in New Issue