0

I have used the strip_tags function. It removes tags like "<p>, <b>", etc but things like "&nbsp; &ldquo;" and other html encodings remain. How to remove them ?

Abdul Aziz Barkat
  • 19,475
  • 3
  • 20
  • 33
Alpha
  • 237
  • 1
  • 2
  • 7

1 Answers1

0

Pass the string to ‘unquote’ function

from urllib.parse import unquote
s = unquote(s)
Mohamed ElKalioby
  • 1,908
  • 1
  • 12
  • 13