Remove escapeHTML
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import classNames from 'classnames';
|
||||
import escapeHTML from 'escape-html';
|
||||
import React, { type FC } from 'react';
|
||||
import Box from '@mui/material/Box';
|
||||
import Button from '@mui/material/Button';
|
||||
@@ -31,7 +30,7 @@ const ListWrapper: FC<ListWrapperProps> = ({
|
||||
'itemAction listItem-button listItem-focusscale'
|
||||
)}
|
||||
data-action={action}
|
||||
aria-label={escapeHTML(title)}
|
||||
aria-label={title}
|
||||
{...dataAttributes}
|
||||
>
|
||||
{children}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import React, { type FC } from 'react';
|
||||
import escapeHTML from 'escape-html';
|
||||
import { groupBy } from 'lodash-es';
|
||||
import Box from '@mui/material/Box';
|
||||
import { getIndex } from './listHelper';
|
||||
@@ -43,7 +42,7 @@ const Lists: FC<ListsProps> = ({ items = [], listOptions = {} }) => {
|
||||
<Box key={index}>
|
||||
{itemGroupTitle && (
|
||||
<ListGroupHeaderWrapper index={index}>
|
||||
{escapeHTML(itemGroupTitle)}
|
||||
{itemGroupTitle}
|
||||
</ListGroupHeaderWrapper>
|
||||
)}
|
||||
{getItems.map((item) => renderListItem(item, index))}
|
||||
|
||||
Reference in New Issue
Block a user