From b9a6e4407ec024d8b597d67c053ee78e18f4c6a3 Mon Sep 17 00:00:00 2001 From: dktea <1403056133@qq.com> Date: Tue, 20 Dec 2022 12:19:06 +0800 Subject: [PATCH] Bug493-Fix --- app/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/main.py b/app/main.py index e311bb0..f293398 100644 --- a/app/main.py +++ b/app/main.py @@ -85,6 +85,10 @@ def mainpage(): content = escape(request.form['content']) f = WordFreq(content) lst = f.get_freq() + for i in lst: + if '&' in i[0]: + i[0].replace('&','\'') + #此处由于找不到输出的所以对其输入的格式进行重新规范 # save history d = load_freq_history(path_prefix + 'static/frequency/frequency.p') lst_history = pickle_idea.dict2lst(d)