[9.20] fix: usr: Disable output escaping in bind9.xsl

The statistics charts where not displaying on some browsers.
This has been fixed.

Closes #5990

Backport of MR !12018

Merge branch 'backport-5990-disable-output-escaping-in-bind9-xsl-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!12019
This commit is contained in:
Mark Andrews 2026-05-15 16:13:41 +10:00
commit b514e663eb

View file

@ -22,7 +22,7 @@
<script type="text/javascript">
$(function($) {
var wid=0;
$('table.zones').each(function(i) { if( $(this).width() > wid ) wid = $(this).width(); return true; });
<xsl:text disable-output-escaping="yes">$('table.zones').each(function(i) { if( $(this).width() > wid ) wid = $(this).width(); return true; });</xsl:text>
$('table.zones').css('min-width', wid );
$("h2+table,h3+table,h4+table,h2+div,h3+div,h2+script,h3+script").prev().append(' <a class="tabletoggle" href="#" style="font-size:small">Show/Hide</a>');
$(".tabletoggle").click(function(){
@ -63,7 +63,7 @@
var g;
while (g = graphs.shift()) {
if (g.data.length > 1) {
<xsl:text disable-output-escaping="yes">if (g.data.length > 1) {</xsl:text>
drawChart(g.title,g.target,g.style,g.data);
}
}