Socket
Socket
Sign inDemoInstall

@tryghost/kg-clean-basic-html

Package Overview
Dependencies
Maintainers
26
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tryghost/kg-clean-basic-html - npm Package Compare versions

Comparing version 3.0.9 to 3.0.10

6

cjs/clean-basic-html.js

@@ -57,3 +57,7 @@ 'use strict';

cleanHtml = doc.body.innerHTML.trim();
if (options.firstChildInnerContent && doc.body.firstElementChild) {
cleanHtml = doc.body.firstElementChild.innerHTML.trim();
} else {
cleanHtml = doc.body.innerHTML.trim();
}
}

@@ -60,0 +64,0 @@

@@ -44,3 +44,7 @@ /* global DOMParser, window */

});
cleanHtml = doc.body.innerHTML.trim();
if (options.firstChildInnerContent && doc.body.firstElementChild) {
cleanHtml = doc.body.firstElementChild.innerHTML.trim();
} else {
cleanHtml = doc.body.innerHTML.trim();
}
}

@@ -47,0 +51,0 @@ return cleanHtml;

@@ -55,3 +55,7 @@ /* global DOMParser, window */

cleanHtml = doc.body.innerHTML.trim();
if (options.firstChildInnerContent && doc.body.firstElementChild) {
cleanHtml = doc.body.firstElementChild.innerHTML.trim();
} else {
cleanHtml = doc.body.innerHTML.trim();
}
}

@@ -58,0 +62,0 @@

4

package.json
{
"name": "@tryghost/kg-clean-basic-html",
"version": "3.0.9",
"version": "3.0.10",
"repository": "https://github.com/TryGhost/Koenig/tree/master/packages/kg-clean-basic-html",

@@ -43,3 +43,3 @@ "author": "Ghost Foundation",

},
"gitHead": "a22a4b6ede749740f23938a5773d652db553a95e"
"gitHead": "eaae61a00d38bbdfe6429b6e9523b3be706101ec"
}

Sorry, the diff of this file is not supported yet

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