(match)
| 100 | @staticmethod |
| 101 | def _unescape_except_pipe(text: str) -> str: |
| 102 | def replace(match): |
| 103 | entity = match.group(0) |
| 104 | |
| 105 | # entities that represent | |
| 106 | if entity in ("|", "|", "|"): |
| 107 | return entity |
| 108 | |
| 109 | return unescape(entity) |
| 110 | |
| 111 | return MarkdownDocumentBackend._ENTITY_RE.sub(replace, text) |
| 112 |
no outgoing calls