清理 HTML 标签
(self, html: str)
| 58 | return "Not specified" |
| 59 | |
| 60 | def _clean_html(self, html: str) -> str: |
| 61 | """清理 HTML 标签""" |
| 62 | if not html: |
| 63 | return "" |
| 64 | |
| 65 | text = re.sub(r"<[^>]+>", "", html) |
| 66 | text = re.sub(r"\s+", " ", text).strip() |
| 67 | |
| 68 | return text |
| 69 | |
| 70 | def _format_date(self, date_str: str) -> str: |
| 71 | """格式化日期""" |