python-visualization / branca

This library is a spinoff from folium, that would host the non-map-specific features.
https://python-visualization.github.io/branca/
MIT License
111 stars 63 forks source link

escape colormap caption #117

Closed Conengmo closed 1 year ago

Conengmo commented 1 year ago

Fix https://github.com/python-visualization/branca/issues/111

Currently the caption of a colormap is not escaped, which means it breaks when an apostrophe is included.

Use Jinja2's tojson to convert to an escaped string.

afbeelding

afbeelding