(value: str, limit: int)
| 372 | |
| 373 | |
| 374 | def _summarize_raw(value: str, limit: int) -> str: |
| 375 | if "<html" in value.lower() or "<!doctype" in value.lower(): |
| 376 | return _truncate(_summarize_html(value), limit) |
| 377 | return _truncate(value, limit) |
| 378 | |
| 379 | |
| 380 | def _summarize_html(value: str) -> str: |
no test coverage detected