diff --git a/test/cheerio.js b/test/cheerio.js index a119b749ce..144d9d41c5 100644 --- a/test/cheerio.js +++ b/test/cheerio.js @@ -298,6 +298,15 @@ describe('cheerio', function() { expect(domEncoded('footer').html()).to.be(expectedXml); }); + it('should not encode characters (issue #866)', function() { + var str = 'абв', + div = '
' + str + '
', + dom = $.load(div, {decodeEntities: true}); + + expect(dom.text()).to.be(str); + expect(dom.html()).to.be(div); + }); + it('should return a fully-qualified Function', function() { var $c = $.load('
');