string-strip-html can not be used from React Native
See original GitHub issueIssue Description
Package’s name string-strip-html
Describe the bug Metro bundler complains that main file is not set correctly in package.json.
Solution Just adding this to package.json solves an issue:
"module": "dist/string-strip-html.esm.js",
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
string-strip-html - npm
Strip HTML tags from strings. No parser, accepts mixed sources.. Latest version: 13.0.6, last published: 5 days ago.
Read more >How to render JSON from a URL as HTML in React Native Text?
Try his lib string-strip-html , it allow to clear HTML tags form string. //return "Some text and text" stripHtml(`Some text <b>and</b> text.
Read more >string-strip-html - npm Package Health Analysis - Snyk
Strip HTML tags from strings. No parser, accepts mixed sources. For more information about how to use this package see README.
Read more >string-strip-html examples - CodeSandbox
String Strip Html Examples. Learn how to use string-strip-html by viewing and forking example apps that make use of string-strip-html on CodeSandbox.
Read more >React.js | Commerce.js docs
Of course simply creating the functions do not do anything as you have yet to call them. When the app component mounts to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
linking the original
metro
ticket https://github.com/facebook/metro/issues/670https://github.com/facebook/metro/issues/670Thank you. Sorry about the situation.