mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 15:20:30 +08:00
Fix: handle html tags in empty_response (#17657)
This commit is contained in:
@@ -835,6 +835,8 @@ class Canvas(Graph):
|
||||
)
|
||||
text = emoji_pattern.sub("", text)
|
||||
|
||||
text = re.sub(r"<[^>]*>", "", text)
|
||||
|
||||
text = re.sub(r"\s+", " ", text).strip()
|
||||
|
||||
MAX_LEN = 500
|
||||
|
||||
Reference in New Issue
Block a user