Skip to content

Commit

Permalink
Fix dangerouslySetInnerHTML in ExtensionTable
Browse files Browse the repository at this point in the history
Affects issues:
- Fixed #3250
  • Loading branch information
AuroraLS3 committed Oct 7, 2023
1 parent a742e9f commit a419ef3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const ExtensionColoredTable = ({table}) => {

const mapToCell = (value, j) => {
if (String(value?.value).startsWith("<a class=\"link\" href=\"")) {
return <td key={JSON.stringify(value)} dangerouslySetInnerHTML={value.value || String(value)}/>;
return <td key={JSON.stringify(value)} dangerouslySetInnerHTML={{__html: value.value || String(value)}}/>;
}
return <td key={JSON.stringify(value)}>
<ColoredText text={value.value || String(value)}/>
Expand Down

0 comments on commit a419ef3

Please sign in to comment.