We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 730076e commit b4ddb01Copy full SHA for b4ddb01
src/components/DatabendTable/index.tsx
@@ -23,7 +23,7 @@ const DatabendTable: FC<IProps> = ({
23
<thead>
24
<tr>
25
{thead?.map((th, index) => {
26
- return <th key={index}>{th}</th>;
+ return <th key={index} dangerouslySetInnerHTML={{ __html: th }} />;
27
})}
28
</tr>
29
</thead>
@@ -32,7 +32,7 @@ const DatabendTable: FC<IProps> = ({
32
return (
33
<tr key={index}>
34
{tr?.map((td, i) => {
35
- return <td key={i}>{td}</td>;
+ return <td key={i} dangerouslySetInnerHTML={{ __html: td }} />;
36
37
38
);
0 commit comments