diff --git a/templates/admin.html b/templates/admin.html index fbcfcf8..bcb4f2b 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -407,6 +407,10 @@ const formData = new FormData(form); + // Get and clean the text input from the textarea + let textInput = formData.get('text'); + let cleanedText = textInput.replace(/ \- | \– /g, ' '); // Replace hyphens + // Get and clean the text input from the textarea let textInput = formData.get('text'); let cleanedText = textInput.replace(/ \- | \– /g, ' '); // Replace hyphens