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(Question): Sanitize the HTML for question content
haitao(lj)2b581522f240
diff --git a/ui/src/components/Editor/Viewer.tsx b/ui/src/components/Editor/Viewer.tsxindex c5bc69f8..fa5cb3ba 100644--- a/ui/src/components/Editor/Viewer.tsx+++ b/ui/src/components/Editor/Viewer.tsx@@ -14,6 +14,7 @@ import { htmlRender } from './utils';let scrollTop = 0;marked.setOptions({breaks: true,+ sanitize: true,});const Index = ({ value }, ref) => {