lib/output-engine/string.js
function tagOutput(descriptor, innerDescriptor, name) {
	var out = '<' + name + innerDescriptor.attributes;
	if (innerDescriptor.style)
		out += ' style="' + innerDescriptor.style + '"';
	if (innerDescriptor.classes)
		out += ' class="' + innerDescriptor.classes + '"';
	if (innerDescriptor.children)
		descriptor.children += out + '>' + innerDescriptor.children + '</' + name + '>';
	else if (openTags.test(name))
		descriptor.children += out + '>';
	else if (strictTags.test(name))
		descriptor.children += out + '></' + name + '>';
	else
		descriptor.children += out + '/>';
}
function tagOutput(descriptor, innerDescriptor, name) {
	var out = '<' + name + innerDescriptor.attributes;
	if (innerDescriptor.style)
		out += ' style="' + innerDescriptor.style + '"';
	if (innerDescriptor.classes)
		out += ' class="' + innerDescriptor.classes + '"';
	if (innerDescriptor.children)
		descriptor.children += out + '>' + innerDescriptor.children + '</' + name + '>';
	else if (openTags.test(name))
		descriptor.children += out + '>';
	else if (strictTags.test(name))
		descriptor.children += out + '></' + name + '>';
	else
		descriptor.children += out + '/>';
}
function tagOutput ( descriptor , innerDescriptor , name ) { var out = '<' + name + innerDescriptor . attributes ; if ( innerDescriptor . style ) out += ' style="' + innerDescriptor . style + '"' ; if ( innerDescriptor . classes ) out += ' class="' + innerDescriptor . classes + '"' ; if ( innerDescriptor . children ) descriptor . children += out + '>' + innerDescriptor . children + '</' + name + '>' ; else if ( openTags . test ( name ) ) descriptor . children += out + '>' ; else if ( strictTags . test ( name ) ) descriptor . children += out + '></' + name + '>' ; else descriptor . children += out + '/>' ; }
produce final html tag representation
produce final html tag representation