Skip to content

Commit b4ddb01

Browse files
committed
fix: table contents
1 parent 730076e commit b4ddb01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/DatabendTable/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const DatabendTable: FC<IProps> = ({
2323
<thead>
2424
<tr>
2525
{thead?.map((th, index) => {
26-
return <th key={index}>{th}</th>;
26+
return <th key={index} dangerouslySetInnerHTML={{ __html: th }} />;
2727
})}
2828
</tr>
2929
</thead>
@@ -32,7 +32,7 @@ const DatabendTable: FC<IProps> = ({
3232
return (
3333
<tr key={index}>
3434
{tr?.map((td, i) => {
35-
return <td key={i}>{td}</td>;
35+
return <td key={i} dangerouslySetInnerHTML={{ __html: td }} />;
3636
})}
3737
</tr>
3838
);

0 commit comments

Comments
 (0)