Fix JavaScript error description passing HTML (#6630)

This commit is contained in:
Richard Schreiber
2026-10-01 11:28:36 +02:00
committed by GitHub
parent ed0b3cab7f
commit ebdfd21b0f
@@ -813,7 +813,13 @@ function setup_basics (el) {
return
}
$('<li><a href="#' + scrollTarget.id + '">' + $.trim(label) + '</a> – ' + description + '</li>')
$('<li></li>')
.append(
$('<a></a>').attr("href", "#" + scrollTarget.id).text($.trim(label))
)
.append(
document.createTextNode(' - ' + description)
)
.appendTo(alert.querySelector('ul') || $('<ul>').appendTo(alert))
.find('a').on('click', function (e) {
$panel.collapse('show')