Ran into this issue when using autoescape (but this also affects escaping values in general). This ensures any value that is passed into the filter is converted into a string. html.escape expects a string input, it doesn't convert the value automatically for you.
Great.
Can you run deno fmt to fix formatting issues?
Also, it would be nice to add a test for that (in /test/escape.test.ts and /test/unescape.test.ts).
Thanks!
Ran into this issue when using autoescape (but this also affects escaping values in general). This ensures any value that is passed into the filter is converted into a string.
html.escape
expects a string input, it doesn't convert the value automatically for you.For example, this wouldn't work: