The data coming from the API has the sensor names encoded using HTML entities (e.g. an ampersand is &) so we need to decode them before showing them.
I know this because I have come across sensors with & encoded this way: for example, sensor 106760, named Polk&Lombard. I assume that < and > are encoded the same way, although some brief poking around the map didn’t turn up any sensors that actually used these characters. (Unsurprisingly 🙂) Apostrophes are not encoded.
The data coming from the API has the sensor names encoded using HTML entities (e.g. an ampersand is
&
) so we need to decode them before showing them.I know this because I have come across sensors with
&
encoded this way: for example, sensor 106760, named Polk&Lombard. I assume that<
and>
are encoded the same way, although some brief poking around the map didn’t turn up any sensors that actually used these characters. (Unsurprisingly 🙂) Apostrophes are not encoded.Fixes #37.