diff themes/default/index.template @ 115:02f239be7568

Escape links + tags
author Steve Kemp <steve@steve.org.uk>
date Thu, 13 Dec 2007 13:55:18 +0000
parents 7a87c1556a0e
children b5fc6377b32e
line wrap: on
line diff
--- a/themes/default/index.template	Thu Dec 13 13:52:57 2007 +0000
+++ b/themes/default/index.template	Thu Dec 13 13:55:18 2007 +0000
@@ -24,7 +24,7 @@
 
  <!-- tmpl_loop name='entries' -->
  <div class="entry">
-  <div class="title"><a href="<!-- tmpl_var name='top' --><!-- tmpl_var name='link' -->"><!-- tmpl_var name='title' --></a></div>
+  <div class="title"><a href="<!-- tmpl_var name='top' --><!-- tmpl_var name='link' escape='html' -->"><!-- tmpl_var name='title' --></a></div>
   <div class="date"><!-- tmpl_var name='date' --></div>
   <div class="body"><!-- tmpl_var name='body' --></div>
   <div class="tags">
@@ -35,7 +35,7 @@
    <!-- /tmpl_if -->
 
    <!-- tmpl_if name='tags' -->
-   Tags: <!-- tmpl_loop name='tags' --><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' -->"><!-- tmpl_var name='tag' --></a><!-- tmpl_if name="__last__" -->.<!-- tmpl_else -->, <!-- /tmpl_if --><!-- /tmpl_loop --> 
+   Tags: <!-- tmpl_loop name='tags' --><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' escape='html' -->"><!-- tmpl_var name='tag' escape='html' --></a><!-- tmpl_if name="__last__" -->.<!-- tmpl_else -->, <!-- /tmpl_if --><!-- /tmpl_loop --> 
   <!-- tmpl_else -->
     No tags
   <!-- /tmpl_if -->
@@ -70,7 +70,7 @@
 <h2>Tags</h2>
 <ul>
 <!-- tmpl_loop name='tagcloud' -->
- <li><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' -->"><!-- tmpl_var name='tag' --> (<!-- tmpl_var name='count' -->)</a></li>
+ <li><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' escape='html' -->"><!-- tmpl_var name='tag' escape='html' --> (<!-- tmpl_var name='count' -->)</a></li>
 <!-- /tmpl_loop -->
 </ul>
 <!-- /tmpl_if -->