I'm attempting to dynamically render some data on a page using nunjucks as a templating engine.
For certain parts of my data, I need unicode symbols to be rendered e.g. ✔︎
I've tried passing in the actual code (✔) for the symbol to my HTML template but it just renders as ✔ rather than the actual symbol (✔). I assume this is happening because it's getting sent as a string.
Is there a way around this? Maybe something related to escaping characters.
I'm using JS as my server-side language.
Okay so the way to do this is to use the safe filter as such -
{{ value | safe }}