Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
brainprep.interfaces.utils.htmlmin¶
- brainprep.interfaces.utils.htmlmin(input_file)[source]¶
Minify HTML code.
Removes unnecessary whitespace, comments, and other elements. If a path to an HTML file is given, the operations are performed inplace.
- Parameters:
- input_fileFile
The HTML code to be minified.
- Returns:
- input_fileFile
The minified HTML code.