From: Bernie Innocenti Date: Thu, 11 Dec 2008 02:49:10 +0000 (+0100) Subject: Escape raw text sent as body to the textarea element in the page editor X-Git-Tag: v3.0~5 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=85ba845f0699aa34899e871527ae461f591f77d9;p=geekigeeki.git Escape raw text sent as body to the textarea element in the page editor --- diff --git a/geekigeeki.py b/geekigeeki.py index 6c77adf..2e2ef72 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -714,7 +714,7 @@ class Page: print '
' % relative_url(self.page_name) print '' % (self.page_name) print '
' % (self.page_name) - print '' % (preview or self.get_raw_body()) + print '' % cgi.escape(preview or self.get_raw_body()) print ' ' % file print """