Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

htmlui: escape &, <, > in output text

Changeset 286a2bff133a

Parent aa5eebcf2f3c

by Steve Borho

Changes to one file · Browse files at 286a2bff133a Showing diff from parent aa5eebcf2f3c Diff from another changeset...

 
34
35
36
 
 
 
37
38
39
 
59
60
61
 
 
34
35
36
37
38
39
40
41
42
 
62
63
64
65
@@ -34,6 +34,9 @@
    def label(self, msg, label):   msg = hglib.tounicode(msg) + msg = msg.replace('&','&amp;') + msg = msg.replace('<','&lt;') + msg = msg.replace('>','&gt;')   style = qtlib.geteffect(label)   if style:   return '<pre style="%s">%s</pre>' % (style, msg) @@ -59,3 +62,4 @@
  u = htmlui()   repo = hg.repository(u)   repo.status() + print u.getdata()[0]