docs: def sanitize_text(text):
      """Make a safe representation of a string.
      Note: the `\s` special character matches any whitespace character.
      This is equivalent to the set [\t\n\r\f\v] as well as ` ` (whitespace)."""
      # First replace characters that have specific effects with their repr #
      text = re.sub("(\s)", lambda m: repr(m.group(0)).strip("'"), text)
      # Make it a unicode string (the try supports python 2 and 3) #
      try: text = text.decode('utf-8')
      except AttributeError: pass
      # Normalize it “
      text = unicodedata.normalize('NFC', text)
      return text