1

What's the best way to decode the following string? I have a few emails that are being encoded. A sample encoded email is below.

encoded_string = "Info@doverhouseresort.com"
decoded_string = "Info@doverhouseresort.com"
jps
  • 20,041
  • 15
  • 75
  • 79
codewithawais
  • 551
  • 1
  • 6
  • 25

1 Answers1

0

Just use module html

import html
encoded_string = "Info@doverhouseresort.com"
decoded_string = html.unescape(encoded_string)
Anton Pomieshchenko
  • 2,051
  • 2
  • 10
  • 24