This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git


The following commit(s) were added to refs/heads/test by this push:
     new 1dfa03ba fix: the list page introduction adopts the way of rendering 
rich text to support the display of some special symbols
1dfa03ba is described below

commit 1dfa03bafe47df3c4fb9a9f4a4ab8d7398e59d4c
Author: shuai <[email protected]>
AuthorDate: Thu Feb 13 14:56:57 2025 +0800

    fix: the list page introduction adopts the way of rendering rich text to 
support the display of some special symbols
---
 ui/src/components/QuestionList/index.tsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

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">

Reply via email to