Skip to content

Commit

Permalink
remove dangerouslySetInnerHtml
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego committed Apr 1, 2021
1 parent 0eb8790 commit 4cdcf12
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/plugins/data/common/field_formats/converters/source.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@ const TemplateComponent = ({ defPairs }: Props) => {
<dl className={'source truncate-by-height'}>
{defPairs.map((pair, idx) => (
<Fragment key={idx}>
<dt
dangerouslySetInnerHTML={{ __html: `${pair[0]}:` }} // eslint-disable-line react/no-danger
/>
<dd
dangerouslySetInnerHTML={{ __html: `${pair[1]}` }} // eslint-disable-line react/no-danger
/>{' '}
<dt>{pair[0]}:</dt>
<dd>{pair[1]}</dd>{' '}
</Fragment>
))}
</dl>
Expand Down

0 comments on commit 4cdcf12

Please sign in to comment.