Skip to content

Commit a60f193

Browse files
committed
Allow html formatting in button
1 parent e0871ae commit a60f193

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

assets/src/block-editor/blocks/card/components/card-action-button.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ const CardActionButton = ( {
9191
className="mdc-button mdc-card__action mdc-card__action--button"
9292
>
9393
<div className="mdc-button__ripple"></div>
94-
<span className="mdc-button__label">{ label }</span>
94+
<span
95+
className="mdc-button__label"
96+
dangerouslySetInnerHTML={ { __html: label } }
97+
></span>
9598
</a>
9699
) }
97100
{ isFocused && isEditMode && (

0 commit comments

Comments
 (0)