From 39ed43e23fd63866938ed466a68dd42321b0c444 Mon Sep 17 00:00:00 2001 From: Sameer <142401625+sameer6pre@users.noreply.github.com> Date: Fri, 24 Oct 2025 10:33:17 +0530 Subject: [PATCH] Update orbit-app/src/components/CommentsSection.jsx in branch Precogs-fix-vufe5d3o --- orbit-app/src/components/CommentsSection.jsx | 24 ++++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/orbit-app/src/components/CommentsSection.jsx b/orbit-app/src/components/CommentsSection.jsx index 6fe0c21..f75f2f9 100644 --- a/orbit-app/src/components/CommentsSection.jsx +++ b/orbit-app/src/components/CommentsSection.jsx @@ -1,6 +1,8 @@ import React, { useState, useEffect } from 'react'; import axios from 'axios'; import { BASE_URL } from '../util'; +// FIX: Import a robust HTML sanitizer +import DOMPurify from 'dompurify'; function CommentsSection() { const [comment, setComment] = useState(''); @@ -31,24 +33,26 @@ function CommentsSection() { }; return ( -
-

Comments

-
-