equal
deleted
inserted
replaced
144 def _encode_url (match) : |
144 def _encode_url (match) : |
145 # encode URL |
145 # encode URL |
146 url_html = match.group(0) |
146 url_html = match.group(0) |
147 url_link = xml.sax.saxutils.unescape(url_html) |
147 url_link = xml.sax.saxutils.unescape(url_html) |
148 |
148 |
149 return '<a href="%(url_link)s">%(url_html)s</a>' % dict(url_link=url_link, url_html=url_html) |
149 return '<a href="%(url_link)s" rel="nofollow">%(url_html)s</a>' % dict(url_link=url_link, url_html=url_html) |
150 |
150 |
151 return self.URL_REGEXP.sub(_encode_url, line) |
151 return self.URL_REGEXP.sub(_encode_url, line) |
152 |
152 |
153 def format_html (self, lines, **kwargs) : |
153 def format_html (self, lines, **kwargs) : |
154 """ |
154 """ |