User`s guide

clone
11-63
import mlreportgen.dom.*;
rpt = Document('ClonedHTMLReport','docx');
htmlObj1 = HTML('<p><b>Hello</b> <i style="color:green">World</i></p>');
Append the HTML object to the report.
append(rpt,htmlObj1);
Copy the HTML object and append the copy to the report.
htmlObj2 = clone(htmlObj1);
append(rpt,htmlObj2);
Generate the report.
close(rpt);
rptview(rpt.OutputPath);
“Append HTML File Contents to DOM Reports”
See Also
mlreportgen.dom.HTML | mlreportgen.dom.HTMLFile
More About
“Appending HTML to DOM Reports”
Introduced in R2015a