Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
459 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | delete Object.freeze;
|
---|
| 2 |
|
---|
| 3 | var html = require('../cjs');
|
---|
| 4 |
|
---|
| 5 | console.assert(
|
---|
| 6 | html.escape('&<>\'"') === '&<>'"',
|
---|
| 7 | 'correct escape'
|
---|
| 8 | );
|
---|
| 9 |
|
---|
| 10 | console.assert(
|
---|
| 11 | html.escape('<>\'"&') === '<>'"&',
|
---|
| 12 | 'correct inverted escape'
|
---|
| 13 | );
|
---|
| 14 |
|
---|
| 15 | console.assert(
|
---|
| 16 | '&<>\'"' === html.unescape('&<>'"'),
|
---|
| 17 | 'correct unescape'
|
---|
| 18 | );
|
---|
| 19 |
|
---|
| 20 | console.assert(
|
---|
| 21 | '<>\'"&' === html.unescape('<>'"&'),
|
---|
| 22 | 'correct inverted unescape'
|
---|
| 23 | );
|
---|
Note:
See
TracBrowser
for help on using the repository browser.