html-react-parser 3.0.14 → 3.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -425,7 +425,7 @@ The reason why your HTML attributes aren't getting called is because [inline eve
|
|
|
425
425
|
|
|
426
426
|
### Parser throws an error
|
|
427
427
|
|
|
428
|
-
If the parser throws an
|
|
428
|
+
If the parser throws an error, check if your arguments are valid. See ["Does invalid HTML get sanitized?"](#does-invalid-html-get-sanitized).
|
|
429
429
|
|
|
430
430
|
### Is SSR supported?
|
|
431
431
|
|
|
@@ -464,7 +464,7 @@ See [#62](https://github.com/remarkablemark/html-react-parser/issues/62) and [ex
|
|
|
464
464
|
|
|
465
465
|
### TS Error: Property 'attribs' does not exist on type 'DOMNode'
|
|
466
466
|
|
|
467
|
-
The TypeScript error occurs because `DOMNode` needs be an instance of domhandler's `Element`. See [migration](#migration) or [#199](https://github.com/remarkablemark/html-react-parser/issues/199).
|
|
467
|
+
The TypeScript error occurs because `DOMNode` needs to be an instance of domhandler's `Element`. See [migration](#migration) or [#199](https://github.com/remarkablemark/html-react-parser/issues/199).
|
|
468
468
|
|
|
469
469
|
### Can I enable `trim` for certain elements?
|
|
470
470
|
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
|
|
11
11
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
12
12
|
|
|
13
|
+
function getDefaultExportFromCjs (x) {
|
|
14
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
var lib$2 = {};
|
|
14
18
|
|
|
15
19
|
var lib$1 = {};
|
|
@@ -68,7 +72,7 @@
|
|
|
68
72
|
/** Type for <![CDATA[ ... ]]> */
|
|
69
73
|
exports.CDATA = ElementType.CDATA;
|
|
70
74
|
/** Type for <!doctype ...> */
|
|
71
|
-
exports.Doctype = ElementType.Doctype;
|
|
75
|
+
exports.Doctype = ElementType.Doctype;
|
|
72
76
|
} (lib$1));
|
|
73
77
|
|
|
74
78
|
var node = {};
|
|
@@ -711,7 +715,7 @@
|
|
|
711
715
|
return DomHandler;
|
|
712
716
|
}());
|
|
713
717
|
exports.DomHandler = DomHandler;
|
|
714
|
-
exports.default = DomHandler;
|
|
718
|
+
exports.default = DomHandler;
|
|
715
719
|
} (lib$2));
|
|
716
720
|
|
|
717
721
|
// constants
|
|
@@ -1910,11 +1914,7 @@
|
|
|
1910
1914
|
|
|
1911
1915
|
var cjs = {};
|
|
1912
1916
|
|
|
1913
|
-
var
|
|
1914
|
-
var styleToObject = {
|
|
1915
|
-
get exports(){ return styleToObjectExports; },
|
|
1916
|
-
set exports(v){ styleToObjectExports = v; },
|
|
1917
|
-
};
|
|
1917
|
+
var styleToObject = {exports: {}};
|
|
1918
1918
|
|
|
1919
1919
|
// http://www.w3.org/TR/CSS21/grammar.html
|
|
1920
1920
|
// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027
|
|
@@ -2216,7 +2216,9 @@
|
|
|
2216
2216
|
}
|
|
2217
2217
|
|
|
2218
2218
|
styleToObject.exports = StyleToObject;
|
|
2219
|
-
|
|
2219
|
+
styleToObject.exports.default = StyleToObject; // ESM support
|
|
2220
|
+
|
|
2221
|
+
var styleToObjectExports = styleToObject.exports;
|
|
2220
2222
|
|
|
2221
2223
|
var utilities$3 = {};
|
|
2222
2224
|
|
|
@@ -2271,7 +2273,7 @@
|
|
|
2271
2273
|
});
|
|
2272
2274
|
return output;
|
|
2273
2275
|
}
|
|
2274
|
-
exports["default"] = StyleToJS;
|
|
2276
|
+
exports["default"] = StyleToJS;
|
|
2275
2277
|
} (cjs));
|
|
2276
2278
|
|
|
2277
2279
|
var React$1 = require$$0__default["default"];
|
|
@@ -2689,7 +2691,9 @@
|
|
|
2689
2691
|
var htmlReactParser = HTMLReactParser;
|
|
2690
2692
|
HTMLReactParser.default = HTMLReactParser;
|
|
2691
2693
|
|
|
2692
|
-
|
|
2694
|
+
var index = /*@__PURE__*/getDefaultExportFromCjs(htmlReactParser);
|
|
2695
|
+
|
|
2696
|
+
return index;
|
|
2693
2697
|
|
|
2694
2698
|
}));
|
|
2695
2699
|
//# sourceMappingURL=html-react-parser.js.map
|