Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Insert CDATA around inline js/css in html and slidy templates.
  • Loading branch information
jgm committed Jul 24, 2011
1 parent 8cb5fef commit 8cd8b19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions default.html
Expand Up @@ -26,7 +26,9 @@
$endif$
$if(highlighting-css)$
<style type="text/css">
/*<![CDATA[*/
$highlighting-css$
/*]]>*/
</style>
$endif$
$for(css)$
Expand Down
10 changes: 8 additions & 2 deletions default.slidy
Expand Up @@ -14,12 +14,16 @@ $endif$
$if(highlighting-css)$
<title>$if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$</title>
<style type="text/css">
/*<![CDATA[*/
$highlighting-css$
/*]]>*/
</style>
$endif$
$if(slidy-css)$
<style type="text/css">
/*<![CDATA[*/
$slidy-css$
/*]]>*/
</style>
$else$
<link rel="stylesheet" type="text/css" media="screen, projection, print"
Expand All @@ -36,9 +40,11 @@ $for(header-includes)$
$header-includes$
$endfor$
$if(slidy-js)$
<script type="text/javascript" charset="utf-8">
<script type="text/javascript" charset="utf-8">
/*<![CDATA[*/
$slidy-js$
</script>
/*]]>*/
</script>
$else$
<script src="http://www.w3.org/Talks/Tools/Slidy2/scripts/slidy.js.gz"
charset="utf-8" type="text/javascript"></script>
Expand Down

0 comments on commit 8cd8b19

Please sign in to comment.