12345678910111213141516 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.sanitize = void 0;
- /**
- * Replaces all spaces with the Unicode No-break space.
- * ref: http://www.fileformat.info/info/unicode/char/a0/index.htm
- *
- * IE would otherwise collapse all spaces into one. This is useful
- * e.g. in tests when you want to compare the actual DOM text content
- * without having to add the unicode character in the place of all spaces.
- */
- function sanitize(text) {
- return text.replace(/ /g, '\u00A0');
- }
- exports.sanitize = sanitize;
- //# sourceMappingURL=sanitize.js.map
|