G
G
god_dan632021-11-29 15:07:38
Python
god_dan63, 2021-11-29 15:07:38

How to add a link (href) to an html tag using python?

Hey!
I can't add a link to the tag, I'm trying to insert it as a string, but apparently it doesn't work that way.
Here is what I need to do:

Из этого  - <td class="confluenceTd" colspan="4"></td>
Мне нужно получить это - <td class="confluenceTd" colspan="4"><a href='/pages/viewpage/action?pageId=6242305480'>КБ_Проверка</a></td>

I know how to add an "a" tag, but I don't understand how to put a hyperlink there.
My goal is for KB_Verification to be like a hyperlink with URL = '/pages/viewpage/action?pageId=6242305480'

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question