##// END OF EJS Templates
[PATCH] Generate correctly XML entities for obfuscated user...
mpm@selenic.com -
r533:b8404005 default
parent child Browse files
Show More
@@ -43,7 +43,7 b' def nl2br(text):'
43 43 return text.replace('\n', '<br/>\n')
44 44
45 45 def obfuscate(text):
46 return ''.join([ '&#%d' % ord(c) for c in text ])
46 return ''.join([ '&#%d;' % ord(c) for c in text ])
47 47
48 48 def up(p):
49 49 if p[0] != "/": p = "/" + p
General Comments 0
You need to be logged in to leave comments. Login now