As reported on plotly.py: https://github.com/plotly/plotly.py/issues/1499 Note that in hover labels, HTML tags are rendered properly. See Codepen: https://codepen.io/antoinerg/pen/XQNjNE