htmlparser-to-html
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -35,3 +35,3 @@ var emptyTags = { | ||
var result = '<'+item.name; | ||
if(item.attribs) { | ||
if(item.attribs && Object.keys(item.attribs).length > 0) { | ||
result += ' '+Object.keys(item.attribs).map(function(key){ | ||
@@ -38,0 +38,0 @@ return key + '="'+item.attribs[key]+'"'; |
{ | ||
"name": "htmlparser-to-html", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Converts the JSON that the htmlparser/htmlparser2 package produces back to HTML.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
11542