Main Content

mlreportgen.utils.HTMLDoc class

Package: mlreportgen.utils

Wrap HTML file for viewing

Description

This utility wraps a .html file into an object. You can then manipulate the object using the methods of this utility.

The mlreportgen.utils.HTMLDoc class is a handle class.

Creation

Description

example

docobj = mlreportgen.utils.HTMLDoc(filename) wraps an HTML document file and returns it as an HTMLDoc object. The constructed HTML doc object is not visible. To make it visible, use the show method.

Input Arguments

expand all

Path to an HTML file, specified as a string or character vector.

Methods

expand all

Examples

collapse all

This example wraps the existing MyHTMLDoc.html file into an HTMLDoc object.

docobj = mlreportgen.utils.HTMLDoc("MyHTMLDoc.html");
show(docobj);

Version History

Introduced in R2018b