Handlebars-Net / Handlebars.Net

A real .NET Handlebars engine
MIT License
1.24k stars 214 forks source link

HandlebarsDotNet.Handlebars.Configuration.NoEscape Applied Inconsistently #468

Closed tonysneed closed 2 years ago

tonysneed commented 2 years ago

Describe the bug

When iterating over an array using #each, the value of Configuration.NoEscape reverts to false.

Expected behavior:

Configuration.NoEscape remains true when set to true.

Test to reproduce

See PR 180 in my repo.

oformaniuk commented 2 years ago

Hello @tonysneed Can you please include the minimal test to the issue here to simplify investigation?

tonysneed commented 2 years ago

Yes, I will create a test to reproduce the condition.

tonysneed commented 2 years ago

Here is a repo with minimal tests that reproduce the issue.

tonysneed commented 2 years ago

@zjklee Have you been able to look at the repo with minimal tests that I provided?

oformaniuk commented 2 years ago

Hello @tonysneed Unfortunately, I had no spare time to take a look. I'd try to take a look in a next couple of days but I cannot promise when it would happen. I'd be happy to help you with investigation if you decide to take a deeper look on your own.