samskivert / jmustache

A Java implementation of the Mustache templating language.
Other
841 stars 128 forks source link

{{{var}}} to prevent html encoding now not works? #76

Closed jjqq2013 closed 8 years ago

jjqq2013 commented 8 years ago

When use 1.9, it was ok to using triple brackets {{{var}}} to prevent html encoding, but 1.12 not works, it encode anyway now "=" is encoded to "=" 住所の種類 is encoded to \u4F4F\u6240\u306E\u7A2E\u985E

hope you check this at next release

samskivert commented 8 years ago

I can't reproduce this error. For example, this test passes:

    @Test public void testUnescapeHTML () {
        check("住所の種類", Mustache.compiler().escapeHTML(true).compile("{{{a}}}").
              execute(context("a", "住所の種類")));
    }

So it doesn't look like 住所の種類 is getting changed inside triple brackets. Can you provide me with a failing test?

jjqq2013 commented 8 years ago

Thank you! I run your test case with my template, actually no problem. I am sorry i must did wrong test way, sorry to bother you.