diff --git a/src/components/cardbuilder/cardBuilder.js b/src/components/cardbuilder/cardBuilder.js index 46099cdad1..b5f85c9a57 100644 --- a/src/components/cardbuilder/cardBuilder.js +++ b/src/components/cardbuilder/cardBuilder.js @@ -1349,7 +1349,7 @@ import { appRouter } from '../appRouter'; cardImageContainerClose = ''; } else { - const cardImageContainerAriaLabelAttribute = ` aria-label="${item.Name}"`; + const cardImageContainerAriaLabelAttribute = ` aria-label="${escapeHtml(item.Name)}"`; const url = appRouter.getRouteUrl(item); // Don't use the IMG tag with safari because it puts a white border around it @@ -1433,7 +1433,7 @@ import { appRouter } from '../appRouter'; if (tagName === 'button') { className += ' itemAction'; actionAttribute = ' data-action="' + action + '"'; - ariaLabelAttribute = ` aria-label="${item.Name}"`; + ariaLabelAttribute = ` aria-label="${escapeHtml(item.Name)}"`; } else { actionAttribute = ''; }