twitter/hogan.js — Issue #30: Html tag/s in data obj
Author: thedgm
Created: 2012-01-23 10:00:06+00:00
State: open

This test (added by me):

function testHtmlTagInData() {
var text = "foo {{bar}}";
var t = Hogan.compile(text);
var s = t.render(
{
bar: 'bar'
}
);
var expected = 'foo bar';
is(s, expected, "Html tag in data compiled correctly");
}

fails with:

FAIL: Html tag in data compiled correctly
Expected |foo%20%3Cb%3Ebar%3C%2Fb%3E|
Got |foo <b>bar</b>|

Can it be fixed?