Fix: handle html tags in empty_response (#17657)

This commit is contained in:
Lynn
2026-08-03 11:14:18 +08:00
committed by GitHub
parent 288be805f1
commit 2e0dda59fc
2 changed files with 19 additions and 2 deletions

View File

@@ -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