Update script.js
Browse files
script.js
CHANGED
|
@@ -192,6 +192,7 @@ function startNewChat() {
|
|
| 192 |
function remove_special_chars(text):
|
| 193 |
"""Remove special characters from text, allowing only specified characters."""
|
| 194 |
allow = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 :,.?!"
|
|
|
|
| 195 |
newtxt = ""
|
| 196 |
for i in text:
|
| 197 |
if i in allow:
|
|
|
|
| 192 |
function remove_special_chars(text):
|
| 193 |
"""Remove special characters from text, allowing only specified characters."""
|
| 194 |
allow = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 :,.?!"
|
| 195 |
+
text = text.replace("<br>","")
|
| 196 |
newtxt = ""
|
| 197 |
for i in text:
|
| 198 |
if i in allow:
|