Revert "sanitize: remove doctype properly, add experimental workaround against unnecessary html elements in sanitized data"

This reverts commit f44d59992edac23206f593e240f0e445c571b661.