expand filter-html-file function