codefuse-chatbot/dev_opsgpt/utils/postprocess.py

12 lines
188 B
Python
Raw Normal View History

2023-11-15 17:17:50 +08:00
# encoding: utf-8
'''
@author: 温进
@file: postprocess.py
@time: 2023/11/9 下午4:01
@desc:
'''
import html
2023-11-15 17:17:50 +08:00
def replace_lt_gt(text: str):
text = html.unescape(text)
2023-11-15 17:17:50 +08:00
return text