Skip to content

Commit

Permalink
Use WP version of escape html over lodash dep
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Nov 28, 2022
1 parent c052280 commit 1692dfe
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 27 deletions.
45 changes: 23 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/block-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@wordpress/deprecated": "file:../deprecated",
"@wordpress/dom": "file:../dom",
"@wordpress/element": "file:../element",
"@wordpress/escape-html": "file:../escape-html",
"@wordpress/hooks": "file:../hooks",
"@wordpress/html-entities": "file:../html-entities",
"@wordpress/i18n": "file:../i18n",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
/**
* External dependencies
*/
import escapeHtml from 'escape-html';

/**
* WordPress dependencies
*/
import { escapeHtml } from '@wordpress/escape-html';
import { safeDecodeURI } from '@wordpress/url';

/**
Expand Down

0 comments on commit 1692dfe

Please sign in to comment.