Escapes < and > in one line, keeping the content of the given code spans (None = no span is trusted and
everything is escaped). Escaping inside a real span only shows the entity as text: a cosmetic cost.
Methods
_escape_line
_escape_line(line: str, spans: Optional]]) -> str
Escapes < and > in one line, keeping the content of the given code spans (None = no span is trusted and
everything is escaped). Escaping inside a real span only shows the entity as text: a cosmetic cost.
| Parameter | Type | Description |
|---|---|---|
| line | str | |
| spans | Optional]] |
Generated with Flude
Copyright © 2026