- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for VisibleTextExtractor (0.24 seconds)
-
scripts/docs.py
md_link_pattern = re.compile(r"\[([^\]]+)\]\([^)]+\)") def strip_markdown_links(text: str) -> str: """Replace markdown links with just their visible text.""" return md_link_pattern.sub(r"\1", text) class VisibleTextExtractor(HTMLParser): """Extract visible text from a string with HTML tags.""" def __init__(self): super().__init__() self.text_parts = [] def handle_data(self, data):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 17:46:10 GMT 2026 - 25.4K bytes - Click Count (0)