diff --git a/components/details/details-content.tsx b/components/details/details-content.tsx index 179d742..d7d5623 100644 --- a/components/details/details-content.tsx +++ b/components/details/details-content.tsx @@ -345,15 +345,13 @@ export default function DetailContent() { function decodeHtmlString(raw: string = "") { if (!raw) return ""; - // 1️⃣ Hapus newline escape, backslash, dsb let decoded = raw .replace(/\\n/g, "\n") - .replace(/\\"/g, '"') // ubah \" jadi " - .replace(/\\'/g, "'") // ubah \' jadi ' - .replace(/\\\\/g, "\\") // ubah \\ jadi \ + .replace(/\\"/g, '"') + .replace(/\\'/g, "'") + .replace(/\\\\/g, "\\") .trim(); - // 2️⃣ Decode entity HTML (misal ") const el = document.createElement("textarea"); el.innerHTML = decoded; return el.value;