We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5fe65b commit aeff4d8Copy full SHA for aeff4d8
1 file changed
js/main.js
@@ -260,7 +260,6 @@ function handleSearch(e) {
260
261
const titleEl = document.getElementById('titleText');
262
if (titleEl) {
263
- // Safely update the title text and count without using innerHTML with untrusted input
264
titleEl.textContent = `Résultats pour "${q}" `;
265
let countSpan = titleEl.querySelector('.text-gray-500.text-sm.ml-2');
266
if (!countSpan) {
@@ -272,7 +271,6 @@ function handleSearch(e) {
272
271
} else {
273
const sectionTitle = document.getElementById('sectionTitle');
274
if (sectionTitle) {
275
- // Rebuild the section title structure using DOM APIs to avoid interpreting q as HTML
276
while (sectionTitle.firstChild) {
277
sectionTitle.removeChild(sectionTitle.firstChild);
278
}
0 commit comments