docs: def htmlsafe(unsafe):
      """
      Escapes all x(ht)ml control characters.
      """
      unsafe = unsafe.replace('&', '&amp;')
      unsafe = unsafe.replace('<', '&lt;')
      unsafe = unsafe.replace('>', '&gt;')
      return unsafe