How to ensure that all html tags are closed? The problem arises because I want to create some kind of excerpt for each article. For example, someone writes an article as follows:
Hi everyone, I'm just an article and I have few <strong>tags</strong> inside <em>of me</me>
If I cut this message immediately after the "tags", I get an unclosed tag. How can I check with Django all user input text before saving it to DB?
source
share