]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Disable output escaping in bind9.xsl 12019/head
authorMark Andrews <marka@isc.org>
Thu, 14 May 2026 00:00:21 +0000 (10:00 +1000)
committerMark Andrews <marka@isc.org>
Fri, 15 May 2026 05:36:41 +0000 (15:36 +1000)
The statistics charts where not displaying on some browsers (e.g. Chrome)
due to '>' being escaped as '&gt;'.  Use disable-output-escaping="yes" to
turn this off.

(cherry picked from commit 9b6c0184258d2b519c0d69761f476af8023c35bb)

bin/named/bind9.xsl

index 359c2d99e4e1a0adb68f90b12e08adc73fb37e49..7ba45b00f7c9208f9aa05c5dd4b1d15c44a3fc1f 100644 (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);
               }
             }