##// END OF EJS Templates
Preserve multibyte UTF-8 characters when obfuscating....
Brendan Cully -
r2649:3b53fa20 default
parent child Browse files
Show More
@@ -241,6 +241,7 b' def nl2br(text):'
241 return text.replace('\n', '<br/>\n')
241 return text.replace('\n', '<br/>\n')
242
242
243 def obfuscate(text):
243 def obfuscate(text):
244 text = unicode(text, 'utf-8', 'replace')
244 return ''.join(['&#%d;' % ord(c) for c in text])
245 return ''.join(['&#%d;' % ord(c) for c in text])
245
246
246 def domain(author):
247 def domain(author):
General Comments 0
You need to be logged in to leave comments. Login now