New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dreamworld/web-util

Package Overview
Dependencies
Maintainers
4
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreamworld/web-util - npm Package Compare versions

Comparing version 1.1.0-html2text.1 to 1.1.0-html2text.2

5

htmlToText.js

@@ -6,3 +6,3 @@

*/
export const htmlToText = (html) => {
export const htmlToText = (html = "", trim = false) => {
let d = document.getElementById('dwHtml2TextConverter')

@@ -14,3 +14,6 @@ if (!d) {

d.innerHTML = html;
if (trim) {
return d.textContent.trim();
}
return d.textContent;
}

2

package.json
{
"name": "@dreamworld/web-util",
"version": "1.1.0-html2text.1",
"version": "1.1.0-html2text.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc