1

I have this code Where I want to hyperlink urlvalue to the title

enter image description here

I tried to insert HTML hyperlink but got exception error...

But I like to get hyperlink in the table with two values like Title will be clickable with url value

Amit
  • 11
  • 2
  • 1
    [Please do not post images of code or errors](https://meta.stackoverflow.com/questions/285551/why-should-i-not-upload-images-of-code-data-errors). Please the full error traceback if possible. – medium-dimensional Nov 04 '22 at 06:39

1 Answers1

1

Use 'unsafehtml' format like this.

tabulate(output, tablefmt='unsafehtml')

But don't forget to escape other cell values by yourself.(using the html.escape())

relent95
  • 3,703
  • 1
  • 14
  • 17