|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
459 bytes
|
| Line | |
|---|
| 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.