Repair HTML serialization

This commit is contained in:
Tony Garnock-Jones 2018-11-05 11:20:02 +00:00
parent 1651ad2a8d
commit d847201c14
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export function htmlToString(j) {
function walk(j) {
if (htmlTag.isClassOf(j)) {
pieces.push('<', j[0]);
j[1].forEach((p) => pieces.push(' ', escapeHtml(p[0]), '="', escapeHtml(p[1])));
j[1].forEach((p) => pieces.push(' ', escapeHtml(p[0]), '="', escapeHtml(p[1]), '"'));
pieces.push('>');
j[2].forEach(walk);
if (!(j[0] in emptyHtmlElements)) {