Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: comment rendered as html

shuaifdc08606c457
diff --git a/ui/src/pages/Timeline/components/Item/index.tsx b/ui/src/pages/Timeline/components/Item/index.tsx
index c25adba9..ed96e137 100644
--- a/ui/src/pages/Timeline/components/Item/index.tsx
+++ b/ui/src/pages/Timeline/components/Item/index.tsx
@@ -117,7 +117,9 @@ const Index: FC<Props> = ({ data, isAdmin, objectInfo, revisionList }) => {
/>
)}
</td>
- <td>{data.comment}</td>
+ <td>
+ <div dangerouslySetInnerHTML={{ __html: data.comment }} />
+ </td>
</tr>
<tr className={isOpen ? '' : 'd-none'}>
{/* <td /> */}