From 52c8d6b1c6740393606f2455f2a3b521a28880bc Mon Sep 17 00:00:00 2001 From: Karthik Ganeshram Date: Wed, 22 May 2024 21:23:07 +0200 Subject: [PATCH] unescape html in description in hub cards (#1297) Signed-off-by: karthik2804 --- spin-up-hub/src/store.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spin-up-hub/src/store.js b/spin-up-hub/src/store.js index 3812f165f..039701d70 100644 --- a/spin-up-hub/src/store.js +++ b/spin-up-hub/src/store.js @@ -113,6 +113,7 @@ const store = createStore({ context.state.contentItems = data context.state.contentItems.map(k => { k.title = unescapeHTML(k.title) + k.summary = unescapeHTML(k.summary) k.id = k.path.substring(k.path.lastIndexOf('/') + 1) }) }, @@ -148,7 +149,7 @@ const unescapeHTML = str => ''': "'", '"': '"', '=': '=', - ''': '\'' + ''': "'", }[tag] || tag) );