diff --git a/apps/web/app/blog/[slug]/page.tsx b/apps/web/app/blog/[slug]/page.tsx index 0e2989c..d3f33b9 100644 --- a/apps/web/app/blog/[slug]/page.tsx +++ b/apps/web/app/blog/[slug]/page.tsx @@ -4,6 +4,7 @@ import type { Metadata } from 'next'; import { notFound } from 'next/navigation'; import Image from 'next/image'; import Link from 'next/link'; +import sanitizeHtml from 'sanitize-html'; import { getDb } from '@/lib/db'; interface Post { @@ -93,7 +94,13 @@ export default async function BlogPostPage({ params }: { params: Promise<{ slug:
diff --git a/apps/web/package.json b/apps/web/package.json index f1eabc4..b10aa1c 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -20,6 +20,7 @@ "posthog-js": "^1.381.0", "react": "19.2.4", "react-dom": "19.2.4", + "sanitize-html": "^2.14.0", "serwist": "^9.5.0" }, "devDependencies": {