import html myHtml = "<body><h1> How to use html.unescape() in Python </h1></body>"encodedHtml = html.escape(myHtml)print("Encoded HTML: ", encodedHtml)decodedHtml = html.unescape(encodedHtml) print("Decoded HTML: ", decodedHtml)
Standard input is empty
Encoded HTML: <body><h1> How to use html.unescape() in Python </h1></body> Decoded HTML: <body><h1> How to use html.unescape() in Python </h1></body>
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!