diff examples/tutorial/geddit/templates/_comment.html @ 631:e990fa05d80b trunk

GenshiTutorial: implement the XSS section.
author cmlenz
date Tue, 04 Sep 2007 19:20:46 +0000
parents abad7c2ebe15
children
line wrap: on
line diff
--- a/examples/tutorial/geddit/templates/_comment.html
+++ b/examples/tutorial/geddit/templates/_comment.html
@@ -1,4 +1,5 @@
+<?python from genshi import HTML ?>
 <li id="comment$num">
   <strong>${comment.username}</strong> at ${comment.time.strftime('%x %X')}
-  <blockquote>${comment.content}</blockquote>
+  <blockquote>${HTML(comment.content)}</blockquote>
 </li>
Copyright (C) 2012-2017 Edgewall Software