diff --git a/src/index.js b/src/index.js index 824a5fe..47641a4 100644 --- a/src/index.js +++ b/src/index.js @@ -5,6 +5,7 @@ const RIGHT = '-->'; const ENCODE = [ ['&', '&'], + ['<', '<'], ['>', '>'], ]; diff --git a/test/escape-test.js b/test/escape-test.js index a856983..22ad365 100644 --- a/test/escape-test.js +++ b/test/escape-test.js @@ -7,7 +7,7 @@ describe('escaping', () => { it('escapes', () => { const html = serialize('foo', '', { foo: '', bar: '>' }); - assert.include(html, '