# HG changeset patch # User Paul Boddie # Date 1443527430 -7200 # Node ID c90e7281106dc4571071ca518c5f16e180e493e6 # Parent e0ed770d17bea0884dddd26c729fc3e29a580b8a Added missing escaping for text within elements. diff -r e0ed770d17be -r c90e7281106d markup.py --- a/markup.py Tue Sep 29 00:25:31 2015 +0200 +++ b/markup.py Tue Sep 29 13:50:30 2015 +0200 @@ -93,7 +93,7 @@ else: out = "%s %s" % ( out, key ) if between is not None: - out = "%s>%s" % ( out, between, tag ) + out = "%s>%s" % ( out, escape( between ), tag ) else: if single: out = "%s />" % out