'Append htmls to the report.
Parameters
htmls : str | list of str
An html str or a list of html str.
captions : str | list of str
A caption or a list of captions to the htmls.
section : str
Name of the section. If section already exists, the images
will be appended to the end of the section.
Notes
.. versionadded:: 0.9.0'

def add_htmls_to_section(self, htmls, captions, section='custom'):

    (htmls, captions, _) = self._validate_input(htmls, captions, section)
    for (html, caption) in zip(htmls, captions):
        caption = ('custom    plot' if (caption == '') else caption)
        sectionvar = self._sectionvars[section]
        global_id = self._get_id()
        div_klass = self._sectionvars[section]
        self.fnames.append(('%s-#-%s-#-custom' % (caption, sectionvar)))
        self._sectionlabels.append(sectionvar)
        self.html.append(html_template.substitute(div_klass=div_klass, id=global_id, caption=caption, html=html))
