# HG changeset patch # User Paul Boddie # Date 1443547720 -7200 # Node ID b3bf74310dd5365b997085aa051524b42187a045 # Parent fde5ece8dc9ad63bc9b66b2d2561b89eb8b74588 Added missing escaping to the add method and to related methods. diff -r fde5ece8dc9a -r b3bf74310dd5 markup.py --- a/markup.py Tue Sep 29 19:03:24 2015 +0200 +++ b/markup.py Tue Sep 29 19:28:40 2015 +0200 @@ -236,15 +236,15 @@ def addfooter( self, text ): """Add some text to the bottom of the document""" - self.footer.append( text ) + self.footer.append( escape( text ) ) def addheader( self, text ): """Add some text to the top of the document""" - self.header.append( text ) + self.header.append( escape( text ) ) def addcontent( self, text ): """Add some text to the main part of the document""" - self.content.append( text ) + self.content.append( escape( text ) ) def init( self, lang='en', css=None, metainfo=None, title=None, header=None,