Skip to content

Commit e03d0e5

Browse files
Fix category headers showing as raw HTML on New Item page
Use createElementFromHtml() to properly parse HTML strings instead of treating them as plain text. Fixes #26053
1 parent 5312d24 commit e03d0e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/js/add-item.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ document.addEventListener("DOMContentLoaded", () => {
135135
$items.append(drawItem(elem));
136136
});
137137

138-
$catHeader.append(title);
139-
$catHeader.append(description);
138+
$catHeader.append(createElementFromHtml(title));
139+
$catHeader.append(createElementFromHtml(description));
140140
$category.append($catHeader);
141141
$category.append($items);
142142

0 commit comments

Comments
 (0)