概述
DOMParser 是 Aspose.Html FOSS 中用于 Python 的一个类。
将标记字符串解析为 DOM 文档。
此类提供 1 个方法,用于在 Python 程序中处理 DOMParser 对象。可用的方法包括:parse_from_string。在安装 Aspose.Html FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。
方法
| 签名 | 描述 |
|---|
parse_from_string(string: str, type: str) → "Document" | Parse string 使用提供的 MIME type. |
另请参阅