Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个从 HTML 文件中提取信息的 C# 模块。但我的输入是一个 MHT 文件。如何仅提取 MHT 文件的 html 部分?
我尝试了几个据说允许我提取 MHT 内容的工具和库,但几乎都失败了(我发现 MHT 文件的提供者没有正确编码某些类型)。我最终发现了 Total Commander,它可以让我解压 MHT 并仅提取 html 部分。这是一个黑客,但它完成了工作。
似乎有许多用于创建 MHT 的工具,而用于解包它们的工具却很少。