Skip to content

Commit

Permalink
unescape html in description in hub cards (#1297)
Browse files Browse the repository at this point in the history
Signed-off-by: karthik2804 <[email protected]>
  • Loading branch information
karthik2804 authored May 22, 2024
1 parent b020afc commit 52c8d6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spin-up-hub/src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
},
Expand Down Expand Up @@ -148,7 +149,7 @@ const unescapeHTML = str =>
'&#39;': "'",
'&quot;': '"',
'&#x3D;': '=',
'&#x27;': '\''
'&#x27;': "'",
}[tag] || tag)
);

Expand Down

0 comments on commit 52c8d6b

Please sign in to comment.