a-debug
This commit is contained in:
@@ -306,7 +306,7 @@ function replaceList() {
|
|||||||
// 3)修改标题 <h3>
|
// 3)修改标题 <h3>
|
||||||
const titleEl = firstItem.querySelector('h3');
|
const titleEl = firstItem.querySelector('h3');
|
||||||
if (titleEl && CsData.title) {
|
if (titleEl && CsData.title) {
|
||||||
titleEl.textContent = CsData.title;
|
titleEl.textContent = escapeHtml(decodeHtmlEntities(CsData.title)); // 防止XSS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user