Skip to content

Commit 96a13cd

Browse files
committed
Use textContent instead of escapeHTML for subtitle
1 parent dae43cc commit 96a13cd

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

  • ts/WoltLabSuite/Core/Acp/Ui
  • wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui

ts/WoltLabSuite/Core/Acp/Ui/Search.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010

1111
import { getPhrase } from "WoltLabSuite/Core/Language";
12-
import { escapeHTML } from "WoltLabSuite/Core/StringUtil";
1312
import { searchAcp, type AcpSearchResultGroup } from "WoltLabSuite/Core/Api/Acp/Search";
1413

1514
const DELAY = 250;
@@ -101,7 +100,7 @@ function renderResults(list: HTMLUListElement, groups: AcpSearchResultGroup[]):
101100

102101
if (item.subtitle) {
103102
const subtitle = document.createElement("small");
104-
subtitle.innerHTML = escapeHTML(item.subtitle);
103+
subtitle.textContent = item.subtitle;
105104
link.append(subtitle);
106105
}
107106

wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Search.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)