Closed dtebaykin closed 8 years ago
Just ' ends the String in javascript - happens due to (likely) Django sanitization of inputs in a form. The String leaves front-end correctly with quotes, but it arrives to the back-end (python function in views.py) with the after-quote part of the String gone.
In data_table_detail_validate.html I have created a sanitizeData() function to convert ' into ' but it works extremely slowly if called on every field in the form as it is being submitted. Needs to be either optimized or redesigned.
Introduced sanitizeText(text) function, it removes all problematic characters replacing them with white space.
' and probably " are interpreted as stop of message in free text fields.