def CreateReasonHTML(self, reason):
    for link_re in config_lib.CONFIG.Get("Email.link_regex_list"):
      reason = re.sub(link_re, r"""<a href="\g<link>">\g<link></a>""", reason)
    return reason
Creates clickable links in the reason where appropriate.
dataset/ETHPy150Open google/grr/grr/lib/aff4_objects/security.py/AbstractApprovalWithReason.CreateReasonHTML