]> granicus.if.org Git - apache/commitdiff
properly enclose inline javascript in HTML output.
authorAndré Malo <nd@apache.org>
Fri, 27 Apr 2012 19:29:19 +0000 (19:29 +0000)
committerAndré Malo <nd@apache.org>
Fri, 27 Apr 2012 19:29:19 +0000 (19:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331550 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/common.xsl

index 536db3a248376b58f819264ca00631a4ab2a397c..7d29489fe2cb8f762946f422a91f0d1edcce3232 100644 (file)
 
 </div> <!-- /footer -->
 
-<script type="text/javascript"><![CDATA[
-    if (typeof(prettyPrint) !== undefined) {
-        prettyPrint();
-    }
-]]></script>
+<script type="text/javascript">
+<xsl:text disable-output-escaping="yes"><![CDATA[<!--//--><![CDATA[//><!--]]></xsl:text><![CDATA[
+if (typeof(prettyPrint) !== undefined) {
+    prettyPrint();
+}
+]]><xsl:text disable-output-escaping="yes"><![CDATA[//--><!]]]]>></xsl:text></script>
 </xsl:template>
 <!-- /bottom -->