Skip to content

Commit

Permalink
Lodash: Refactor Tag Cloud block away from _.unescape() (#47562)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla authored Jan 31, 2023
1 parent b6ca1e4 commit b329b48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/post-terms/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* External dependencies
*/
import classnames from 'classnames';
import { unescape } from 'lodash';

/**
* WordPress dependencies
Expand All @@ -18,6 +17,7 @@ import {
import { createBlock, getDefaultBlockName } from '@wordpress/blocks';
import { Spinner, TextControl } from '@wordpress/components';
import { useSelect } from '@wordpress/data';
import { decodeEntities } from '@wordpress/html-entities';
import { __ } from '@wordpress/i18n';
import { store as coreStore } from '@wordpress/core-data';

Expand Down Expand Up @@ -120,7 +120,7 @@ export default function PostTermsEdit( {
href={ postTerm.link }
onClick={ ( event ) => event.preventDefault() }
>
{ unescape( postTerm.name ) }
{ decodeEntities( postTerm.name ) }
</a>
) )
.reduce( ( prev, curr ) => (
Expand Down

0 comments on commit b329b48

Please sign in to comment.