User`s guide

11 Functions – Alphabetical List
11-10
addHTML
Class: mlreportgen.dom.Document
Package: mlreportgen.dom
Append HTML string to document
Syntax
htmlObjOut = addHTML(documentObj,htmlText)
Description
htmlObjOut = addHTML(documentObj,htmlText) converts a string of HTML text to
a group of DOM objects and appends the group to the Document object documentObj.
Input Arguments
documentObj — Document to append content to
mlreportgen.dom.Document object
Document object to append content to, specified as an mlreportgen.dom.Document
object.
htmlText — HTML text
string
HTML text, specified as a string.
Example: '<p><b>Hello</b> <i style="color:green">World</i></p>'
Output Arguments
htmlObjOut — HTML object with appended content
mlreportgen.dom.HTML object