Skip to content

Commit 261cbca

Browse files
committed
fix: ordering subcontrols descriptions HTML characters being escaped
1 parent 9dee802 commit 261cbca

File tree

1 file changed

+4
-3
lines changed
  • assets/apps/customizer-controls/src/ordering

1 file changed

+4
-3
lines changed

assets/apps/customizer-controls/src/ordering/Ordering.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,10 @@ const InnerControl = ({ id, args }) => {
235235
<>
236236
{label && <span className="subcontrol-label">{label}</span>}
237237
{description && (
238-
<span className="subcontrol-description">
239-
{description}
240-
</span>
238+
<span
239+
className="subcontrol-description"
240+
dangerouslySetInnerHTML={{ __html: description }}
241+
/>
241242
)}
242243
</>
243244
)}

0 commit comments

Comments
 (0)