The version of BS that ships with calibre is heavily modified and cannot
simply be replaced since literally thousands of recipes depend on it.
You can use either preprocess_html_raw() in your recipe to fix up the
html however you like before it is parsed by BeautifulSoup or you can
use the JavascripRecipe class instead of BasicNewsRecipe, which uses
html5lib for parsing.
If you do want to fix BS then a limited patch to fix onlythis issue
against the existing embedded version of BS is welcome.
The version of BS that ships with calibre is heavily modified and cannot
simply be replaced since literally thousands of recipes depend on it.
You can use either preprocess_ html_raw( ) in your recipe to fix up the
html however you like before it is parsed by BeautifulSoup or you can
use the JavascripRecipe class instead of BasicNewsRecipe, which uses
html5lib for parsing.
If you do want to fix BS then a limited patch to fix onlythis issue
against the existing embedded version of BS is welcome.
status wontfix