code: def unquote(text):
      
      while '%' in text:
          newtext = url_unquote(text)
          if newtext == text:
              break
          text = newtext
      return text
docs: Replace all percent-encoded entities in text.