Skip to content

Commit

Permalink
ELEMENTS-1740: HTML Escape Add to Collection label
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuljain-dev committed May 9, 2024
1 parent 2486c62 commit bdcebe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/actions/nuxeo-add-to-collection-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ import '../nuxeo-button-styles.js';
}

_newEntryFormatter(term) {
return { id: -1, displayLabel: term };
return { id: -1, displayLabel: escapeHTML(term) };
}

_isValid() {
Expand Down

0 comments on commit bdcebe0

Please sign in to comment.