Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

Fix #2182

ADecametre809551d0f81c
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 = () => {
<title>{name} | Reactive Resume</title>
{metadata.css.visible && (
<style id="custom-css" lang="css">
- {sanitize(metadata.css.value)}
+ {metadata.css.value}
</style>
)}
</Helmet>
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,