If I use the following parse command:
const htmlDoc = parse('<div><linkHtml href="https://nowhere.com">testing</linkHtml></div>', {
lowerCaseTagName: false
});
And then I use the following to get the HTML string back out:
const html = htmlDoc.toString();
the HTML string looks like the following:
testing
toString should either respect the option in the parse method, or a boolean parameter should be added to the toString() method.
e.g. const html = htmlDoc.toString(false);