def convert_links(self, text):
        html = "<a href='#' onclick='websocket.send(\"CMD\\1\"); return false;'>\\2</a>"
        repl = self.re_link.sub(html, text)
        return repl
Replaces links with HTML code.
dataset/ETHPy150Open evennia/evennia/evennia/utils/text2html.py/TextToHTMLparser.convert_links