@dreamworld/web-util
Advanced tools
Comparing version 1.3.1 to 1.3.2-first-second-line-beetween-space-is-not-removed.1
@@ -14,5 +14,5 @@ import textToHtml from './textToHtml'; | ||
var children = Array.from(html.children || []); | ||
var childNodes = Array.from(html.childNodes || []); | ||
var bRemoveChild = true; | ||
children.forEach(el => { | ||
childNodes.forEach(el => { | ||
if(bRemoveChild) { | ||
@@ -66,6 +66,6 @@ if(el.textContent.trim() === "") { | ||
var children = Array.from(html.children || []).reverse(); | ||
var childNodes = Array.from(html.childNodes || []).reverse(); | ||
var bRemoveChild = true; | ||
bRemoveChild = true; | ||
children.forEach(el => { | ||
childNodes.forEach(el => { | ||
if(bRemoveChild) { | ||
@@ -72,0 +72,0 @@ if (el.textContent.trim() === "") { |
{ | ||
"name": "@dreamworld/web-util", | ||
"version": "1.3.1", | ||
"version": "1.3.2-first-second-line-beetween-space-is-not-removed.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -127,1 +127,31 @@ # web-util | ||
``` | ||
###### Example-7 First node as text node | ||
- **Input:** | ||
``` | ||
hello1 | ||
<div> | ||
<div></div> | ||
<div> hello2 </div> | ||
<div></div> | ||
<div></div> | ||
<div> hello3 </div> | ||
<div></div> | ||
<div></div> | ||
</div> | ||
<div></div> | ||
<div></div> | ||
<div></div> | ||
<div></div> | ||
``` | ||
- **Output:** | ||
``` | ||
hello1 | ||
<div> | ||
<div></div> | ||
<div>hello2 </div> | ||
<div></div> | ||
<div></div> | ||
<div> hello3</div> | ||
</div> | ||
``` |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
11358
157
2