preprocess ¤
HTML pre-processing.
Functions:
-
preprocess–Pre-process HTML with user-defined functions.
preprocess ¤
Pre-process HTML with user-defined functions.
Parameters:
-
html(str) –The HTML to process before conversion to a manpage.
-
module_path(str) –The path of a Python module containing a
preprocessfunction. The function must accept one and only one argument calledsoup. Thesoupargument is an instance ofbs4.BeautifulSoup.
Returns:
-
str–The processed HTML.