@tryghost/kg-clean-basic-html
Advanced tools
Comparing version 3.0.9 to 3.0.10
@@ -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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
14518
4578
160
0