#89 use html.escape instead of homemade html_format

Open
opened 1 week ago by hz · 0 comments
hz commented 1 week ago

At several places throughout the codebase, we use homemade, half-baked HTML escaping like errors.html_format. It’s probably better to use html.escape everywhere instead, probably with quote=True in most (all?) places.

At several places throughout the codebase, we use homemade, half-baked HTML escaping like [`errors.html_format`](https://catsoop.mit.edu/git/catsoop/catsoop/src/commit/72eb1a3bf7381904a98027de39914f5ae12d6796/catsoop/errors.py#L30-L49). It's probably better to use [`html.escape`](https://docs.python.org/3/library/html.html#html.escape) everywhere instead, probably with `quote=True` in most (all?) places.
hz added the
beginner friendly
label 1 week ago
hz added the
code
label 1 week ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.