what could be the reason the HTML Link title is not showing up properly?
df[0].apply(lambda s: f"<br> <a href={s}> Link </a> </br>")
every row of my dataframe contains a hyperlink. When sending the email, the hyperlink actually shows up and it is clickable, but it appears the whole link and I want only to appear "Link"
the output I am getting currently:
<br> <a href="www.example.com"> Link </a> </br>
desired output in html mail:
Link
CodePudding user response:
Add ''
for correct string:
df[0].apply(lambda s: f"<br> <a href='{s}'> Link </a> </br>")
Possible solution:
df[0].style.format(lambda s: f"<br> <a href='{s}'> Link </a> </br>")
CodePudding user response:
You have to use:
print.text(xyz)
This will show you the text. .text() converts HTML code into normal text.