MCPcopy Create free account
hub / github.com/SpaceZephyr/myskill / _clean_html

Method _clean_html

workingnomads-scraper/scripts/parser.py:60–68  ·  view source on GitHub ↗

清理 HTML 标签

(self, html: str)

Source from the content-addressed store, hash-verified

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 """格式化日期"""

Callers 1

parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected