use html.escape instead of homemade html_format #33

Open
opened 2022-12-27 18:32:28 +00:00 by hz · 0 comments
Owner

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`. It's probably better to use `html.escape` everywhere instead, probably with `quote=True` in most (all?) places.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
catsoop/catsoop#33
No description provided.