Skip to content

Commit

Permalink
Attempt 3 for source formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego committed Apr 1, 2021
1 parent 7cb46f3 commit d16d1d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/data/common/field_formats/converters/source.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const TemplateComponent = ({ defPairs }: Props) => {
{defPairs.map((pair, idx) => (
<Fragment key={idx}>
<dt
dangerouslySetInnerHTML={{ __html: `${pair[0]}:` }} // eslint-disable-line react/no-danger
dangerouslySetInnerHTML={{ __html: `${escape(pair[0])}:` }} // eslint-disable-line react/no-danger
/>
<dd
dangerouslySetInnerHTML={{ __html: `${pair[1]}` }} // eslint-disable-line react/no-danger
dangerouslySetInnerHTML={{ __html: `${escape(pair[1])}` }} // eslint-disable-line react/no-danger
/>{' '}
</Fragment>
))}
Expand Down

0 comments on commit d16d1d4

Please sign in to comment.