Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug in CompilePartVisitor not using Encoders.HtmlEncode #91

Merged
merged 1 commit into from
May 16, 2015
Merged

Fixed bug in CompilePartVisitor not using Encoders.HtmlEncode #91

merged 1 commit into from
May 16, 2015

Conversation

pysco68
Copy link

@pysco68 pysco68 commented May 8, 2015

This made it impossible to disable HTML escaping for compiled templates.

The fix itsel is in Nustache.Compilation/CompilePartVisitor.cs where I modified the reflecting code to look up the HtmlEncoder delegate set.

Btw. this fixed most of Interpolation* test cases too (they run green after the patch - in my case at least)

@Romanx Romanx self-assigned this May 13, 2015
@Romanx Romanx added this to the 1.15.1 milestone May 13, 2015
@Romanx Romanx added the bug label May 13, 2015
@Romanx
Copy link
Collaborator

Romanx commented May 13, 2015

Hey,

Thanks for submitting this, I've taken a look and it looks fine to me. I'll include it in the next release which should come out at latest by Friday,

Thanks!

@Romanx Romanx merged commit c1b98e7 into jdiamond:master May 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants