### Describe the bug handlebars not escape `'` character ### Expected behavior: I think that result is `'`. ### Test to reproduce ```csharp [TestMethod] public void Escape_Test() { var handlebars = Handlebars.Create(); var render = handlebars.Compile("{{input}}"); object data = new { input = "test'1" }; var actual = render(data); Assert.Equal("test'1", actual); } ```
Activity
activtrak-bnelson commentedon Mar 21, 2025
I think you want to use the new encoder instead of the legacy one. See here https://github.com/Handlebars-Net/Handlebars.Net?tab=readme-ov-file#example-2
fix: HTML-encode single quote character by default (issue #546)
Merge pull request #618 from Handlebars-Net/worktree-agent-a732b233a2…