Example:
blah = new HTMLString.Tag('a', { 'href': '/test.html', 'data-test': JSON.stringify({'id': 12, 'test': 'This is a test'}) });
blah.head();
It currently outputs:
<a data-test="{"id":12,"test":"This is a test"}" href="/test.html">
It should output:
<a data-test="{"id":12,"test":"This is a test"}" href="/test.html">
Or similar.