Django strip_tags template filter add space
问题 I use djangos template filter striptags. Example: >>> from django.utils.html import strip_tags >>> strip_tags("<p>This is a paragraph.</p><p>This is another paragraph.</p>") 'This is a paragraph.This is another paragraph.' What is the best way to add a space character between the paragraphs, so that I get this string instead: 'This is a paragraph. This is another paragraph.' Edit: One idea I have is to write a custom template filter that replaces all </p> tags with [space]</p> before the