html-react-parser 1.4.14 → 3.0.1
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 +18 -1
- package/dist/html-react-parser.js +461 -458
- package/dist/html-react-parser.js.map +1 -1
- package/dist/html-react-parser.min.js +1 -1
- package/dist/html-react-parser.min.js.map +1 -1
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -41,6 +41,8 @@ parse('<p>Hello, World!</p>'); // React.createElement('p', {}, 'Hello, World!')
|
|
|
41
41
|
- [htmlparser2](#htmlparser2)
|
|
42
42
|
- [trim](#trim)
|
|
43
43
|
- [Migration](#migration)
|
|
44
|
+
- [v3.0.0](#v300)
|
|
45
|
+
- [v2.0.0](#v200)
|
|
44
46
|
- [v1.0.0](#v100)
|
|
45
47
|
- [FAQ](#faq)
|
|
46
48
|
- [Is this XSS safe?](#is-this-xss-safe)
|
|
@@ -60,6 +62,7 @@ parse('<p>Hello, World!</p>'); // React.createElement('p', {}, 'Hello, World!')
|
|
|
60
62
|
- [Financial Contributors](#financial-contributors)
|
|
61
63
|
- [Individuals](#individuals)
|
|
62
64
|
- [Organizations](#organizations)
|
|
65
|
+
- [Enterprise](#enterprise)
|
|
63
66
|
- [Support](#support)
|
|
64
67
|
- [License](#license)
|
|
65
68
|
|
|
@@ -83,7 +86,7 @@ yarn add html-react-parser
|
|
|
83
86
|
|
|
84
87
|
```html
|
|
85
88
|
<!-- HTMLReactParser depends on React -->
|
|
86
|
-
<script src="https://unpkg.com/react@
|
|
89
|
+
<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
|
|
87
90
|
<script src="https://unpkg.com/html-react-parser@latest/dist/html-react-parser.min.js"></script>
|
|
88
91
|
<script>
|
|
89
92
|
window.HTMLReactParser(/* string */);
|
|
@@ -370,6 +373,14 @@ parse('<p> </p>', { trim: true }); // React.createElement('p')
|
|
|
370
373
|
|
|
371
374
|
## Migration
|
|
372
375
|
|
|
376
|
+
### v3.0.0
|
|
377
|
+
|
|
378
|
+
[domhandler](https://github.com/fb55/domhandler) has been upgraded to v5 so some [parser options](https://github.com/fb55/htmlparser2/wiki/Parser-options) like `normalizeWhitespace` have been removed.
|
|
379
|
+
|
|
380
|
+
### v2.0.0
|
|
381
|
+
|
|
382
|
+
Since [v2.0.0](https://github.com/remarkablemark/html-react-parser/releases/tag/v2.0.0), Internet Explorer (IE) is no longer supported.
|
|
383
|
+
|
|
373
384
|
### v1.0.0
|
|
374
385
|
|
|
375
386
|
TypeScript projects will need to update the types in [v1.0.0](https://github.com/remarkablemark/html-react-parser/releases/tag/v1.0.0).
|
|
@@ -530,6 +541,12 @@ Support this project with your organization. Your logo will show up here with a
|
|
|
530
541
|
[](https://opencollective.com/html-react-parser/organization/8/website)
|
|
531
542
|
[](https://opencollective.com/html-react-parser/organization/9/website)
|
|
532
543
|
|
|
544
|
+
## Enterprise
|
|
545
|
+
|
|
546
|
+
Available as part of the Tidelift Subscription.
|
|
547
|
+
|
|
548
|
+
The maintainers of html-react-parser and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-html-react-parser?utm_source=npm-html-react-parser&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
|
549
|
+
|
|
533
550
|
## Support
|
|
534
551
|
|
|
535
552
|
- [GitHub Sponsors](https://b.remarkabl.org/github-sponsors)
|