mozilla / nunjucks

A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)
https://mozilla.github.io/nunjucks/
BSD 2-Clause "Simplified" License
8.48k stars 634 forks source link

apostrophes getting turned into something else (unicode maybe?) #1465

Open tnrich opened 2 months ago

tnrich commented 2 months ago
const nunjucks = require("nunjucks");
const a = nunjucks.compile("Hello {{ name }}");
console.log(a.render({ name: "world's" }));

Running that file in node results in the following being console logged:

Hello world's

Is there a way to get it to just return

Hello world's

as I think would be expected?

Thanks!