code: def clean_html(context, data):
      
      doc = _get_html_document(context, data)
      if doc is None:
          context.emit(data=data)
          return
  
      remove_paths = context.params.get('remove_paths')
      for path in ensure_list(remove_paths):
          for el in doc.findall(path):
              el.drop_tree()
  
      html_text = html.tostring(doc, pretty_print=True)
      content_hash = context.store_data(html_text)
      data['content_hash'] = content_hash
      context.emit(data=data)
docs: Clean an HTML DOM and store the changed version.