library/src/decoders/HTML/BP-HTMLDecoder.cc
// Sets the blacklist flags in the anchor/form elements if they contain anything in the blacklist_urls array.
Sets the blacklist flags in the anchor/form elements if they contain anything in the blacklist_urls array.
Sets the blacklist flags in the anchor / form elements if they contain anything in the blacklist_urls array .
BP_ERROR_T HTMLApplyBlacklist(P_BP_HTML_FULL_EXTRACTION full_extraction, char **blacklist_urls, size_t entry_count)
{
	if(!full_extraction)
		return ERR_FAILURE;
	if(!blacklist_urls)
		return ERR_FAILURE;
	HTMLApplyAnchorBlacklist(full_extraction->anchors, blacklist_urls, entry_count);
	HTMLApplyFormBlacklist(full_extraction->forms, blacklist_urls, entry_count);
	return ERR_SUCCESS;
}
BP_ERROR_T HTMLApplyBlacklist ( P_BP_HTML_FULL_EXTRACTION full_extraction , char * * blacklist_urls , size_t entry_count ) { if ( ! full_extraction ) return ERR_FAILURE ; if ( ! blacklist_urls ) return ERR_FAILURE ; HTMLApplyAnchorBlacklist ( full_extraction -> anchors , blacklist_urls , entry_count ) ; HTMLApplyFormBlacklist ( full_extraction -> forms , blacklist_urls , entry_count ) ; return ERR_SUCCESS ; }
Sets the blacklist flags in the anchor/form elements if they contain anything in the blacklist_urls array.
Sets the blacklist flags in the anchor / form elements if they contain anything in the blacklist_urls array .
// apply the anchor blacklist // apply the form blacklist // return indicating success