Merge branch 'feat/ui-0.5.0' into 'test'

fix: comment rendered as html

See merge request opensource/answer!273
This commit is contained in:
Li Shuailing 2022-11-24 02:28:56 +00:00
commit cda8c0839f
1 changed files with 3 additions and 1 deletions

View File

@ -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 /> */}