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
preprocess
function. The function must accept one and only one argument calledsoup
. Thesoup
argument is an instance ofbs4.BeautifulSoup
.
Returns:
-
str
–The processed HTML.