def _htmlrepl(self, M): repl = self.get_replacements(escapewith=writers.html) # special: replace doublequote only for the URL. repl['url'] = writers.html(self.url.replace('"', "%22")) repl['url_readable'] = writers.html(self.url) repl['link'] = self.logURL(M) return repl
def _htmlrepl(self, M): repl = self.get_replacements(M, escapewith=writers.html) # special: replace doublequote only for the URL. repl['url'] = writers.html(self.url.replace('"', "%22")) repl['url_readable'] = writers.html(self.url) repl['link'] = self.logURL(M) return repl
def __init__(self, nick, line, linenum, time_): self.nick = nick self.linenum = linenum self.time = time.strftime("%H:%M:%S", time_) self.url, self.line = (line + ' ').split(' ', 1) # URL-sanitization self.url_readable = self.url # readable line version self.url = self.url.replace('"', "%22") # readable line satitization: self.line = writers.html(self.line.strip())
def _htmlrepl(self, M): repl = self.get_replacements(escapewith=writers.html) repl['url'] = writers.html(self.url) repl['url_readable'] = writers.html(self.url) repl['link'] = self.logURL(M) return repl