converter html em string python

import html
html_text = "<!-- Sample HTML Text -->"
converted_to_string = html.unescape(html_text)
print(converted_to_string)
CompSciGeek