diff --git a/assets/js/blocks/reviews/edit-utils.js b/assets/js/blocks/reviews/edit-utils.js
index f71b02a9cf5..f3fc945364b 100644
--- a/assets/js/blocks/reviews/edit-utils.js
+++ b/assets/js/blocks/reviews/edit-utils.js
@@ -1,9 +1,9 @@
/**
* External dependencies
*/
-import { __, sprintf } from '@wordpress/i18n';
-import { Fragment, RawHTML } from '@wordpress/element';
-import { escapeHTML } from '@wordpress/escape-html';
+import { __ } from '@wordpress/i18n';
+import { Fragment } from '@wordpress/element';
+import { __experimentalCreateInterpolateElement } from 'wordpress-element';
import {
Notice,
ToggleControl,
@@ -51,19 +51,24 @@ export const getSharedReviewContentControls = ( attributes, setAttributes ) => {
className="wc-block-reviews__notice"
isDismissible={ false }
>
-
- { sprintf(
- escapeHTML(
- /* translators: 1: store settings url 2: link attributes */
- __(
- 'Product rating is disabled in your store settings.',
- 'woo-gutenberg-products-block'
- )
+ { __experimentalCreateInterpolateElement(
+ __(
+ 'Product rating is disabled in your store settings.',
+ 'woo-gutenberg-products-block'
+ ),
+ {
+ a: (
+ // eslint-disable-next-line jsx-a11y/anchor-has-content
+
),
- getAdminLink( 'admin.php?page=wc-settings&tab=products' ),
- 'target="_blank"'
- ) }
-
+ }
+ ) }
) }
{
className="wc-block-reviews__notice"
isDismissible={ false }
>
-
- { sprintf(
- escapeHTML(
- /* translators: 1: discussion settings url 2: link attributes */
- __(
- 'Reviewer photo is disabled in your site settings.',
- 'woo-gutenberg-products-block'
- )
+ { __experimentalCreateInterpolateElement(
+ __(
+ 'Reviewer photo is disabled in your site settings.',
+ 'woo-gutenberg-products-block'
+ ),
+ {
+ a: (
+ // eslint-disable-next-line jsx-a11y/anchor-has-content
+
),
- getAdminLink( 'options-discussion.php' ),
- 'target="_blank"'
- ) }
-
+ }
+ ) }
) }