@register.filter()<EOL>def only_safe_html(html_text):
return mark_safe(strip_html_tags(html_text))<EOL>
Django template filter that strips all HTML tags excepts those degined in ALLOWED_TAGS.

General Usage:
    {{ html_text|only_safe_html }}