fix(security): remediate audit vulnerabilities SEC-001 through SEC-023
This commit is contained in:
1 parent
dc88677169
commit
bd49fbc4a0
31 files changed
+867
-114
No files matched your search
@@ -1,5 +1,6 @@
|
||||
"use client";
|
||||
import React, { useState, useEffect } from "react";
|
||||
import DOMPurify from 'dompurify';
|
||||
import {
|
||||
ChevronRight,
|
||||
Calendar,
|
||||
@@ -175,7 +176,14 @@ export default function BlogPostClient({ blog, publishedDate, authorName }: Blog
|
||||
{/* Main Rich Content HTML Renderer */}
|
||||
<div
|
||||
className="prose prose-base sm:prose-lg max-w-none text-medical-gray-700 leading-loose space-y-5 article-html-content"
|
||||
dangerouslySetInnerHTML={{ __html: blog.content || '' }}
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: typeof window !== 'undefined'
|
||||
? DOMPurify.sanitize(blog.content || '', {
|
||||
ADD_TAGS: ['iframe'],
|
||||
ADD_ATTR: ['allow', 'allowfullscreen', 'frameborder', 'scrolling'],
|
||||
})
|
||||
: blog.content || '',
|
||||
}}
|
||||
/>
|
||||
|
||||
{/* Tags Chip Footer */}
|
||||
|
||||
Reference in new issue
Block a user