I have a pandas data frame and there is a column which contains strings like these:
Column B
<a href="path_to_some_filea.txt" >value_of_a</a>
<a href="path_to_some_fileb.txt" >value_of_b</a>
I converted the above pandas dataframe to html using to_html like this:
df.to_html(index_names=False)
The converted html code replaces the <,> in the string with weird characters. The converted html for the specific column looks like this:
<a href="path_to_some_filea.txt" >value_of_a</a>
<a href="path_to_some_fileb.txt" >value_of_b</a>
Does anyone know why this is happening and how to fix this issue ?