'Find HTML code in HTML comments'

def _html_in_comment(self, comment, request, response):

    html_in_comment = self.HTML_RE.search(comment)
    if (html_in_comment is None):
        return
    if ((comment, response.get_url()) in self._already_reported):
        return
    comment = comment.strip()
    comment = comment.replace('\n', '')
    comment = comment.replace('\r', '')
    comment = comment[:40]
    desc = 'A    comment    with    the    string    "%s"    was    found    in:    "%s".    This    could    be    interesting.'
    desc %= (comment, response.get_url())
    i = Info.from_fr('HTML    comment    contains    HTML    code', desc, response.id, self.get_name(), request)
    i.set_uri(response.get_uri())
    i.add_to_highlight(html_in_comment.group(0))
    kb.kb.append(self, 'html_comment_hides_html', i)
    om.out.information(i.get_desc())
    self._already_reported.add((comment, response.get_url()))
