|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
358 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|---|
| 4 |
|
|---|
| 5 | const htmlUnescapes = {
|
|---|
| 6 | '&': '&',
|
|---|
| 7 | '<': '<',
|
|---|
| 8 | '>': '>',
|
|---|
| 9 | '"': '"',
|
|---|
| 10 | ''': "'",
|
|---|
| 11 | };
|
|---|
| 12 | function unescape(str) {
|
|---|
| 13 | return str.replace(/&(?:amp|lt|gt|quot|#(0+)?39);/g, match => htmlUnescapes[match] || "'");
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | exports.unescape = unescape;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.