code: def escape(self, string):
          
          html_entities = {"&": "&amp;", '<': '&lt;', '>': '&gt;'}
          return HTML("".join(html_entities.get(c, c) for c in string))
docs: Returns *string* with all instances of '<', '>', and '&' converted into
          HTML entities.