Skip to content

handlebars not escape ' character #546

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions