Answer the question
In order to leave comments, you need to log in
How to check if it's empty in django-summernote?
I am using django-summernote for comments on the site. I process Ajax before sending to the server. If you just "send", then the form field is empty (check through .length === 0 ), you can send, but if you just click on the field, then I will automatically receive other tags from manipulations.
While cleaning the string with a regula from spaces and p, br tags comes to mind. and if the character remains, then accept it on the server. But there must be a better way. Tell me please =) <p></p>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question