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 1/2] 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 c48091093..91b877baf 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 cbcf38828..aad8be337 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, From 73b423030f99bf38db54700e85bafb2247d070de Mon Sep 17 00:00:00 2001 From: ADecametre <66925945+ADecametre@users.noreply.github.com> Date: Mon, 27 Jan 2025 23:10:29 -0500 Subject: [PATCH 2/2] Removed unused import --- apps/artboard/src/pages/artboard.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/artboard/src/pages/artboard.tsx b/apps/artboard/src/pages/artboard.tsx index 91b877baf..bf7a70930 100644 --- a/apps/artboard/src/pages/artboard.tsx +++ b/apps/artboard/src/pages/artboard.tsx @@ -1,4 +1,3 @@ -import { sanitize } from "@reactive-resume/utils"; import { useEffect, useMemo } from "react"; import { Helmet } from "react-helmet-async"; import { Outlet } from "react-router";