pallets / jinja

A very fast and expressive template engine.
https://jinja.palletsprojects.com
BSD 3-Clause "New" or "Revised" License
10.23k stars 1.6k forks source link

Doesn't parse HTML multi escape sequence codes #1897

Closed t3lmoazevedo closed 11 months ago

t3lmoazevedo commented 11 months ago

The template parser doesn't recognize anymore the more-than-one escape sequence HTML codes. Examples: 🔋 \uD83D\uDD0B 🐌 \uD83D\uDC0C 🌡️ \uD83C\uDF21\uFE0F

image

Environment:

davidism commented 11 months ago

Jinja doesn't deal with HTML at all. It renders text, how that text is interpreted is up to the client viewing it, such as a browser for HTML. It looks like you're using Home Assistant, perhaps this issue should be reported to them? It's not really clear from the information you've provided here.

t3lmoazevedo commented 11 months ago

Thank you @davidism for the explanation. I will report to HomeAssistant team.