TheVera commited on
Commit
2d01dcd
·
verified ·
1 Parent(s): 3c99815

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +1 -0
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: