Method: rich.console.Console.export_svg.<locals>.escape_text
Calls: 12, Exceptions: 0, Paths: 1Back
Path 1: 12 calls (1.0)
'foo' (3) 'Click' (3) '\n' (3) 'Rich' (3)
'foo' (3) 'Click' (3) '\n' (3) 'Rich' (3)
1def escape_text(text: str) -> str:
2 """HTML escape text and replace spaces with nbsp."""
3 return escape(text).replace(" ", " ")