Skip to content

handlebars not escape ' character #546

Closed

Description

@TranVanTinhUIT

Describe the bug

handlebars not escape ' character

Expected behavior:

I think that result is '.

Test to reproduce

[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

  1. activtrak-bnelson commented on Mar 21, 2025

    @activtrak-bnelson
  2. added 2 commits that reference this issue on Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions