From 1cae78476159f3688408113ce3634290ceed508c Mon Sep 17 00:00:00 2001 From: missionfloyd Date: Sat, 19 Aug 2023 06:29:08 -0600 Subject: [PATCH] Unescape last message (#3623) --- modules/chat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/chat.py b/modules/chat.py index 312f8cb8..e9c2fe7c 100644 --- a/modules/chat.py +++ b/modules/chat.py @@ -313,12 +313,12 @@ def remove_last_message(history): else: last = ['', ''] - return last[0], history + return html.unescape(last[0]), history def send_last_reply_to_input(history): if len(history['visible']) > 0: - return history['visible'][-1][1] + return html.unescape(history['visible'][-1][1]) else: return ''