From https://www.crummy.com/software/BeautifulSoup/bs4/doc/#output-formatters, it says
If you give Beautiful Soup a document that contains HTML entities like “&lquot;”, they’ll be converted to Unicode characters:
soup = BeautifulSoup("&ldquo ; Wow!&rdquo ; he said.", 'html.parser')
str(soup)
'“Wow!” he said.'
Is there any way to modify this behavior and make it preserve entities like '&dlquo ;', '&rdquo ;' or '" ;' in string processing with BeautifulSoup for html or xml?