From 809551d0f81cc1860ab8b682212bc820680aa5da Mon Sep 17 00:00:00 2001 From: ADecametre <66925945+ADecametre@users.noreply.github.com> Date: Mon, 27 Jan 2025 19:23:28 -0500 Subject: [PATCH] Fix #2182 --- apps/artboard/src/pages/artboard.tsx | 2 +- libs/utils/src/namespaces/string.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/artboard/src/pages/artboard.tsx b/apps/artboard/src/pages/artboard.tsx index c4809109..91b877ba 100644 --- a/apps/artboard/src/pages/artboard.tsx +++ b/apps/artboard/src/pages/artboard.tsx @@ -64,7 +64,7 @@ export const ArtboardPage = () => { {name} | Reactive Resume {metadata.css.visible && ( )} diff --git a/libs/utils/src/namespaces/string.ts b/libs/utils/src/namespaces/string.ts index cbcf3882..aad8be33 100644 --- a/libs/utils/src/namespaces/string.ts +++ b/libs/utils/src/namespaces/string.ts @@ -63,6 +63,8 @@ export const sanitize = (html: string, options?: sanitizeHtml.IOptions) => { allowedAttributes: { ...options?.allowedAttributes, "*": ["class", "style"], + "a": ["href", "target"], + "img": ["src", "alt"], }, allowedStyles: { ...options?.allowedStyles,