Main Content
Word and HTML File and HTML String Inclusion
Include Word document files and HTML files and strings in a
report
Include Microsoft® Word document files and HTML files and strings in a document.
Classes
mlreportgen.dom.DOCXSubDoc | Reference to external Microsoft Word document |
mlreportgen.dom.HTML | Use HTML markup to create DOM document |
mlreportgen.dom.HTMLFile | Convert an HTML file to a DOM document |
Functions
mlreportgen.utils.html2dom.prepHTMLFile | Prepare HTML file for conversion to DOM (Since R2020a) |
mlreportgen.utils.html2dom.prepHTMLString | Prepare HTML string for conversion to DOM (Since R2020a) |
mlreportgen.utils.tidy | Correct and clean XML and HTML content |
Topics
- Convert HTML Content to DOM Objects
Add HTML content from a string or file to a report.
- Prepare HTML for Conversion to DOM Objects
Fix HTML issues and resolve formatting of HTML elements before converting the HTML to a DOM object.
- Requirements for Converting HTML to DOM Objects
HTML content added to a report must be XML parsable.