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
  • 15,760
  • 14
  • 59
  • 71
CodeWithAwais
  • 697
  • 1
  • 5
  • 15

1 Answers1

0

Just use module html

import html
encoded_string = "Info@doverhouseresort.com"
decoded_string = html.unescape(encoded_string)
Anton Pomieshchenko
  • 1,791
  • 2
  • 9
  • 20