From d7f22bea406d3f58adba0d569d06bff3cacabb20 Mon Sep 17 00:00:00 2001 From: Peter Sorensen Date: Thu, 29 Aug 2024 17:42:28 -0700 Subject: [PATCH] decode html entities in primary term component --- components/post-primary-term/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/post-primary-term/index.tsx b/components/post-primary-term/index.tsx index c2900226..af287fd7 100644 --- a/components/post-primary-term/index.tsx +++ b/components/post-primary-term/index.tsx @@ -1,4 +1,5 @@ import { __ } from '@wordpress/i18n'; +import { decodeEntities } from '@wordpress/html-entities'; import { usePrimaryTerm } from '../../hooks'; interface PostPrimaryTermProps { @@ -50,5 +51,5 @@ export const PostPrimaryTerm = ({ wrapperProps.href = termUrl; } - return {termString}; + return {decodeEntities(termString)}; };