html-react-parser 5.0.8 → 5.0.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 +1 -1
- package/esm/attributes-to-props.d.mts +1 -0
- package/esm/dom-to-react.d.mts +1 -0
- package/esm/index.d.mts +2 -0
- package/esm/utilities.d.mts +1 -0
- package/package.json +1 -4
package/README.md
CHANGED
|
@@ -388,7 +388,7 @@ parse('<br>', {
|
|
|
388
388
|
### htmlparser2
|
|
389
389
|
|
|
390
390
|
> [!WARNING]
|
|
391
|
-
> `htmlparser2` options _**
|
|
391
|
+
> `htmlparser2` options _**don't work** on the client-side_ (browser) and they _**only work** on the server-side_ (Node.js). By overriding the options, it can break universal rendering.
|
|
392
392
|
|
|
393
393
|
Default [htmlparser2 options](https://github.com/fb55/htmlparser2/wiki/Parser-options#option-xmlmode) can be overridden in >=[0.12.0](https://github.com/remarkablemark/html-react-parser/tree/v0.12.0).
|
|
394
394
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../lib/attributes-to-props';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../lib/dom-to-react';
|
package/esm/index.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/utilities';
|
package/package.json
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-react-parser",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.10",
|
|
4
4
|
"description": "HTML to React parser.",
|
|
5
5
|
"author": "Mark <mark@remarkablemark.org>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
7
7
|
"module": "./esm/index.mjs",
|
|
8
|
-
"types": "./lib/index.d.ts",
|
|
9
8
|
"exports": {
|
|
10
9
|
".": {
|
|
11
|
-
"types": "./lib/index.d.ts",
|
|
12
10
|
"import": "./esm/index.mjs",
|
|
13
11
|
"require": "./lib/index.js"
|
|
14
12
|
},
|
|
15
13
|
"./lib/*": {
|
|
16
|
-
"types": "./lib/*.d.ts",
|
|
17
14
|
"import": "./esm/*.mjs",
|
|
18
15
|
"default": "./lib/*.js"
|
|
19
16
|
}
|