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 Oct 2, 2020
1 parent 0d2771b commit bbc2590
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 bbc2590

Please sign in to comment.