Due to the incompatibility between mod-wsgi and BeautifulSoup (https://bugs.launchpad.net/beautifulsoup/+bug/948577), we check to see if mod_wsgi is being used, in which case, we use the html5 parser instead to ensure that the lxml parsing will not interfere. If mod_wsgi is not detected, BeautifulSoup can use whatever default parser, including lxml.
Due to the incompatibility between mod-wsgi and BeautifulSoup (https://bugs.launchpad.net/beautifulsoup/+bug/948577), we check to see if mod_wsgi is being used, in which case, we use the html5 parser instead to ensure that the lxml parsing will not interfere. If mod_wsgi is not detected, BeautifulSoup can use whatever default parser, including lxml.