Skip to content

Commit

Permalink
Decode any entities within the innerHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Sep 7, 2020
1 parent 2dd0fb4 commit 0cdd361
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/blocks/src/api/matchers.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* WordPress dependencies
*/
import { decodeEntities } from '@wordpress/html-entities';

/**
* External dependencies
*/
Expand Down Expand Up @@ -38,6 +43,6 @@ export function html( selector, multilineTag ) {
return value;
}

return match.innerHTML;
return decodeEntities( match.innerHTML );
};
}

0 comments on commit 0cdd361

Please sign in to comment.