Mercurial > genshi > genshi-test
diff examples/tutorial/geddit/templates/_comment.html @ 631:e414dc0bca5c
GenshiTutorial: implement the XSS section.
author | cmlenz |
---|---|
date | Tue, 04 Sep 2007 19:20:46 +0000 |
parents | dba522b4c31d |
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>