Print Hyperlink/html to log

Hi all,

Is there a way you can print html to the log?
I would like to write a hyperlink to the log, so that users can click on it instead of having it to copy.

I tried this:

    def link(uri, label=None):
        if label is None:
            label = uri
        parameters = ''
        escape_mask = '\033]8;{};{}\033\\{}\033]8;;\033\\'
        return escape_mask.format(parameters, uri, label)

I also tried html <a href='url'>text</a> But that is written as plain text, not html