source: trip-planner-front/node_modules/ent/test/num.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 326 bytes
Line 
1var test = require('tape');
2var ent = require('../');
3
4test('opts.numeric', function (t) {
5 var a = 'a & b & c';
6 var ax = 'a &#38; b &#38; c';
7 var b = '<html> © π " \'';
8 var bx = '&#60;html&#62; &#169; &#960; &#34; &#39;';
9
10 t.equal(ent.encode(a), ax);
11 t.equal(ent.encode(b), bx);
12 t.end();
13});
Note: See TracBrowser for help on using the repository browser.