1 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
 
   2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
 
   5 from librarian import OutputFile
 
   9     identifier = 'sanitize'
 
  10     file_extension = 'xml2'
 
  12     def build(self, document, **kwargs):
 
  13         doc = document.tree.getroot() # TODO: copy
 
  15         return OutputFile.from_bytes(