My goal is to generate an interactive html file from plotly fig and embed this html in my website. I was previously using fig.write_html(‘name.html’) , but in the generated HTML, there are some unwanted symbols like ampersands(&&). Now, I tried adding cdn like fig.write_html(‘name.html’, include_plotlyjs=“cdn”) , which solves the && problem but I have some questions about this:
- On using cdn, is my data still secured/private, and can there be some possible complications on embedding this html to my website?
- Is there any better/alternate way of removing the && symbols/cleaning the initial html file generated by plotly?