]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Disable output escaping in bind9.xsl 12018/head
authorMark Andrews <marka@isc.org>
Thu, 14 May 2026 00:00:21 +0000 (10:00 +1000)
committerMark Andrews <marka@isc.org>
Thu, 14 May 2026 00:00:21 +0000 (10:00 +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.

bin/named/bind9.xsl

index bc018c0093d09073679c8c5a3fd619b342201bb1..b1d0402c233c2b8833ff15a86eb21103abf8f89c 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);
               }
             }