code: def handle_entityref(self, name):
          
          self.log.debug( u'Encountered entity  : {0}'.format(name) )
          if not self.removeEntity:
              self.data.append('&%s;' % name)
docs: Handler of processing entity (overrided, private)