From 7c0b0e42f5afb0e9c39bd2d42e4822d64d0c7b3e Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 25 Jun 2026 17:14:22 -0400 Subject: [PATCH] refac --- src/lib/components/common/Valves.svelte | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/lib/components/common/Valves.svelte b/src/lib/components/common/Valves.svelte index 7ad3573d50..b535206008 100644 --- a/src/lib/components/common/Valves.svelte +++ b/src/lib/components/common/Valves.svelte @@ -1,5 +1,8 @@ {#if valvesSpec && Object.keys(valvesSpec?.properties ?? {}).length} - {#each Object.keys(valvesSpec.properties) as property, idx} + {#each Object.keys(valvesSpec.properties) as property}
@@ -213,8 +216,11 @@ {/if} {#if (valvesSpec.properties[property]?.description ?? null) !== null} -
- {valvesSpec.properties[property].description} +
+ + {@html DOMPurify.sanitize( + marked.parse(valvesSpec.properties[property].description ?? '', { async: false }) + )}
{/if}