Normalize arbitrary text into a single-line string.
(value: Any)
| 581 | |
| 582 | |
| 583 | def _collapse_whitespace(value: Any) -> str: |
| 584 | """Normalize arbitrary text into a single-line string.""" |
| 585 | return re.sub(r"\s+", " ", str(value or "")).strip() |
| 586 | |
| 587 | |
| 588 | def _strip_html(value: str) -> str: |
no outgoing calls
no test coverage detected