Skip to content

Commit

Permalink
Fix: Image block error
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusborne committed Dec 20, 2024
1 parent 6ac5013 commit f6e4c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hoc/withHtmlAttributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function shallowEqual( obj1, obj2 ) {

const sanitizeAttributeValue = ( value ) => {
// Replace characters like &, <, >, " with their HTML entity equivalents
return value
return value.toString()
.replace( /&/g, '&amp;' )
.replace( /</g, '&lt;' )
.replace( />/g, '&gt;' )
Expand Down

0 comments on commit f6e4c22

Please sign in to comment.