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: the list page introduction adopts the way of rendering rich text to support the display of some special symbols

shuai1dfa03bafe47
diff --git a/ui/src/components/QuestionList/index.tsx b/ui/src/components/QuestionList/index.tsx
index 5111b2d5..a3ffb948 100644
--- a/ui/src/components/QuestionList/index.tsx
+++ b/ui/src/components/QuestionList/index.tsx
@@ -168,9 +168,10 @@ const QuestionList: FC<Props> = ({
</NavLink>
</h5>
{viewType === 'card' && (
- <p className="mb-2 small text-body text-truncate-2">
- {li.description}
- </p>
+ <p
+ className="mb-2 small text-body text-truncate-2"
+ dangerouslySetInnerHTML={{ __html: li.description }}
+ />
)}
<div className="question-tags mb-12">