This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import ReactMarkdown from "react-markdown";
|
||||
import DOMPurify from "dompurify";
|
||||
|
||||
const apiBase = import.meta.env.VITE_API_URL;
|
||||
|
||||
@@ -85,7 +85,11 @@ const AlleNeuigkeitenPage = () => {
|
||||
activeCardId === item.id ? "" : "line-clamp-3 overflow-hidden"
|
||||
}`}
|
||||
>
|
||||
<ReactMarkdown>{item.description}</ReactMarkdown>
|
||||
<div
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: DOMPurify.sanitize(item.description),
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<button
|
||||
onClick={() => toggleCard(item.id)}
|
||||
|
||||
Reference in New Issue
Block a user