updates
This commit is contained in:
@@ -5,8 +5,7 @@ import Link from "next/link";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useCaseStudy } from "@/lib/hooks/useCaseStudy";
|
||||
import { getImageUrl } from "@/lib/imageUtils";
|
||||
import poster from "@/public/images/case/poster.png";
|
||||
import project from "@/public/images/case/project.png";
|
||||
import { sanitizeHTML } from "@/lib/security/sanitize";
|
||||
|
||||
interface CaseSingleProps {
|
||||
slug: string;
|
||||
@@ -204,12 +203,12 @@ const CaseSingle = ({ slug }: CaseSingleProps) => {
|
||||
{caseStudy.project_overview ? (
|
||||
<div
|
||||
className="content-html"
|
||||
dangerouslySetInnerHTML={{ __html: caseStudy.project_overview }}
|
||||
dangerouslySetInnerHTML={{ __html: sanitizeHTML(caseStudy.project_overview) }}
|
||||
/>
|
||||
) : (
|
||||
<div
|
||||
className="content-html"
|
||||
dangerouslySetInnerHTML={{ __html: caseStudy.description || '' }}
|
||||
dangerouslySetInnerHTML={{ __html: sanitizeHTML(caseStudy.description || '') }}
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -217,7 +216,7 @@ const CaseSingle = ({ slug }: CaseSingleProps) => {
|
||||
{caseStudy.description && (
|
||||
<div
|
||||
className="content-html full-description mt-40"
|
||||
dangerouslySetInnerHTML={{ __html: caseStudy.description }}
|
||||
dangerouslySetInnerHTML={{ __html: sanitizeHTML(caseStudy.description) }}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
@@ -345,7 +344,7 @@ const CaseSingle = ({ slug }: CaseSingleProps) => {
|
||||
<h2 className="section-title">Site Map & Process</h2>
|
||||
<div
|
||||
className="content-html"
|
||||
dangerouslySetInnerHTML={{ __html: caseStudy.site_map_content }}
|
||||
dangerouslySetInnerHTML={{ __html: sanitizeHTML(caseStudy.site_map_content) }}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user