Main Content

Word and HTML File and HTML String Inclusion

Include Word document files and HTML files and strings in a report

Classes

mlreportgen.dom.DOCXSubDocReference to external Microsoft Word document
mlreportgen.dom.HTMLUse HTML markup to create DOM document
mlreportgen.dom.HTMLFileConvert an HTML file to a DOM document

Functions

mlreportgen.utils.html2dom.prepHTMLFilePrepare HTML file for conversion to DOM
mlreportgen.utils.html2dom.prepHTMLStringPrepare HTML string for conversion to DOM
mlreportgen.utils.tidyCorrect and clean XML and HTML content

Topics

Convert HTML Content to a DOM Object

Add HTML content from a string or file to a report.

Prepare HTML for Conversion to a DOM Object

Fix HTML issues and resolve formatting of HTML elements before converting the HTML to a DOM object.

Requirements for Converting HTML to a DOM Object

HTML content added to a report must be XML parsable.