mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Factor out string escaping code
So that it only lives in one place.
This commit is contained in:
@@ -31,6 +31,7 @@ from app.utils import (
|
||||
FAILURE_STATUSES,
|
||||
REQUESTED_STATUSES,
|
||||
Spreadsheet,
|
||||
unescape_string,
|
||||
)
|
||||
|
||||
|
||||
@@ -204,7 +205,7 @@ def get_inbox_partials(service_id):
|
||||
for message in messages_to_show
|
||||
}:
|
||||
message.update({
|
||||
'content': bytes(message['content'], 'utf-8').decode('unicode_escape')
|
||||
'content': unescape_string(message['content'])
|
||||
})
|
||||
messages_to_show.append(message)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user