Template split not working

I use scrape to get a value out of a table from a page.

The value is set to

2.3 µg/m³

I try to use a template to parse 2.3 but it’s not working.

value.split('&')[0] also tried value.split(' ')[0] still returns the same value 2.3 µg/m³

After several tries i solved it.

For some reason html entities are invisible for the template engine.

value.split('µg')[0]

returns 2.3 without the " "

1 Like