Created
October 2, 2020 06:27
-
-
Save Allwin12/d90d9f7217d27c7b3ffd39d6f230e50e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from html import unescape | |
escaped_string = ''' | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
</head> | |
<body> | |
<p>This is a sample string! </p> | |
</body> | |
</html> | |
''' | |
html_string = unescape(escaped_string) | |
print(html_string) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment