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