WestHealth / pyvis

Python package for creating and visualizing interactive network graphs.
http://pyvis.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
970 stars 163 forks source link

HTML title code does not display correctly. #166

Open lhn1703 opened 2 years ago

lhn1703 commented 2 years ago

Issue: title mouse hover text appears as raw html New pyvis html graph file generated () image

Old working pyvis html graph file image

change: image

It appears that rerunning pyvis generates new stylesheet and script links that breaks the feature. The hacky solution is to directly replace the new versions of these links in the generated html file to the previous working version.

jhunpingco commented 2 years ago

Related? https://github.com/WestHealth/pyvis/issues/144

lhn1703 commented 1 year ago

Yes, it is same issue. Changing the first 2 html lines to previous version seemed easier than applying the other workaround, though it would be preferrable to be fixed on pyvis's end.

yllowcool commented 1 year ago

Hi fellow community members, I have came up with a solution that is more secured and recommended method by visjs officially. Please see the code gist I posted here: https://gist.github.com/yllowcool/1d21a38a02595b88f99547b98d92411f

Hope it helps 😀

Atul-Raj-HUB commented 3 months ago

@yllowcool Title Mouse hover still appears as raw HTML for me