diff themes/blog.steve.org.uk/month.template @ 114:54ed5b4c2ad8

Escape tags + links by defaut
author Steve Kemp <steve@steve.org.uk>
date Thu, 13 Dec 2007 13:52:57 +0000
parents 1dc14df6aac1
children 5066f7ad8b46
line wrap: on
line diff
--- a/themes/blog.steve.org.uk/month.template	Thu Dec 13 13:29:24 2007 +0000
+++ b/themes/blog.steve.org.uk/month.template	Thu Dec 13 13:52:57 2007 +0000
@@ -55,7 +55,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>
+ <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' -->
@@ -70,7 +70,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 -->
@@ -87,7 +87,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 -->