html-react-parser 5.1.8 → 5.1.10
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
|
@@ -27,7 +27,7 @@ import parse from 'html-react-parser';
|
|
|
27
27
|
parse('<p>Hello, World!</p>'); // React.createElement('p', {}, 'Hello, World!')
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
[Replit](https://replit.com/@remarkablemark/html-react-parser) | [JSFiddle](https://jsfiddle.net/remarkablemark/7v86d800/) | [
|
|
30
|
+
[Replit](https://replit.com/@remarkablemark/html-react-parser) | [JSFiddle](https://jsfiddle.net/remarkablemark/7v86d800/) | [StackBlitz](https://stackblitz.com/edit/html-react-parser) | [TypeScript](https://stackblitz.com/edit/html-react-parser-typescript) | [Examples](https://github.com/remarkablemark/html-react-parser/tree/master/examples)
|
|
31
31
|
|
|
32
32
|
<details>
|
|
33
33
|
<summary>Table of Contents</summary>
|
|
@@ -2082,8 +2082,6 @@
|
|
|
2082
2082
|
|
|
2083
2083
|
var cjs$1 = {};
|
|
2084
2084
|
|
|
2085
|
-
var cjs = {};
|
|
2086
|
-
|
|
2087
2085
|
// http://www.w3.org/TR/CSS21/grammar.html
|
|
2088
2086
|
// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027
|
|
2089
2087
|
var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
|
|
@@ -2345,7 +2343,7 @@
|
|
|
2345
2343
|
var __importDefault$2 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
2346
2344
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
2347
2345
|
};
|
|
2348
|
-
Object.defineProperty(cjs, "__esModule", { value: true });
|
|
2346
|
+
Object.defineProperty(cjs$1, "__esModule", { value: true });
|
|
2349
2347
|
var inline_style_parser_1 = __importDefault$2(inlineStyleParser);
|
|
2350
2348
|
/**
|
|
2351
2349
|
* Parses inline style to object.
|
|
@@ -2383,7 +2381,7 @@
|
|
|
2383
2381
|
});
|
|
2384
2382
|
return styleObject;
|
|
2385
2383
|
}
|
|
2386
|
-
cjs.default = StyleToObject;
|
|
2384
|
+
cjs$1.default = StyleToObject;
|
|
2387
2385
|
|
|
2388
2386
|
var utilities = {};
|
|
2389
2387
|
|
|
@@ -2436,8 +2434,7 @@
|
|
|
2436
2434
|
var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
2437
2435
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
2438
2436
|
};
|
|
2439
|
-
|
|
2440
|
-
var style_to_object_1 = __importDefault$1(cjs);
|
|
2437
|
+
var style_to_object_1 = __importDefault$1(cjs$1);
|
|
2441
2438
|
var utilities_1$2 = utilities;
|
|
2442
2439
|
/**
|
|
2443
2440
|
* Parses CSS inline style to JavaScript object (camelCased).
|
|
@@ -2455,7 +2452,8 @@
|
|
|
2455
2452
|
});
|
|
2456
2453
|
return output;
|
|
2457
2454
|
}
|
|
2458
|
-
|
|
2455
|
+
StyleToJS.default = StyleToJS;
|
|
2456
|
+
var cjs = StyleToJS;
|
|
2459
2457
|
|
|
2460
2458
|
(function (exports) {
|
|
2461
2459
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
@@ -2464,7 +2462,7 @@
|
|
|
2464
2462
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2465
2463
|
exports.returnFirstArg = exports.canTextBeChildOfNode = exports.ELEMENTS_WITH_NO_TEXT_CHILDREN = exports.PRESERVE_CUSTOM_ATTRIBUTES = exports.setStyleProp = exports.isCustomComponent = void 0;
|
|
2466
2464
|
var react_1 = require$$0;
|
|
2467
|
-
var style_to_js_1 = __importDefault(cjs
|
|
2465
|
+
var style_to_js_1 = __importDefault(cjs);
|
|
2468
2466
|
var RESERVED_SVG_MATHML_ELEMENTS = new Set([
|
|
2469
2467
|
'annotation-xml',
|
|
2470
2468
|
'color-profile',
|