onizet / html2openxml

Html2OpenXml is a small .Net library that convert simple or advanced HTML to plain OpenXml components. This program has started in 2009, initially to convert user's comments from SharePoint to Word.
MIT License
297 stars 106 forks source link

ParseHtml does not produce output of any visible kind #106

Closed KoronisBerkeshire closed 2 weeks ago

KoronisBerkeshire commented 2 years ago

When using this HTML as an input string, the program does not output anything as a result.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="EN-us">
<head>
<title>Title</title>
</head>
<body>
<p><span>This document is a test.</span></p>
</body>
</html>

The HTML validates without errors at https://validator.w3.org/nu/#textarea, so it's not any obvious failure to build working input.

The program always returns an empty Word/OpenXML document.