Skip to content

Commit

Permalink
decode html entities in primary term component
Browse files Browse the repository at this point in the history
  • Loading branch information
psorensen committed Aug 30, 2024
1 parent 1aafdfc commit d7f22be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/post-primary-term/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { __ } from '@wordpress/i18n';
import { decodeEntities } from '@wordpress/html-entities';
import { usePrimaryTerm } from '../../hooks';

interface PostPrimaryTermProps {
Expand Down Expand Up @@ -50,5 +51,5 @@ export const PostPrimaryTerm = ({
wrapperProps.href = termUrl;
}

return <Tag {...wrapperProps}>{termString}</Tag>;
return <Tag {...wrapperProps}>{decodeEntities(termString)}</Tag>;
};

0 comments on commit d7f22be

Please sign in to comment.