diff --git a/boofilsic/settings.py b/boofilsic/settings.py index 103e0ab2..d2f2d5ea 100644 --- a/boofilsic/settings.py +++ b/boofilsic/settings.py @@ -50,6 +50,7 @@ INSTALLED_APPS = [ "django.contrib.postgres", "django_sass", "django_rq", + "django_bleach", "tz_detect", "simple_history", "markdownx", @@ -305,6 +306,9 @@ GOOGLE_API_KEY = "***REMOVED***" IGDB_CLIENT_ID = "deadbeef" IGDB_CLIENT_SECRET = "deadbeef" +BLEACH_STRIP_COMMENTS = True +BLEACH_STRIP_TAGS = True + # Thumbnail setting # It is possible to optimize the image size even more: https://easy-thumbnails.readthedocs.io/en/latest/ref/optimize/ THUMBNAIL_ALIASES = { diff --git a/common/templates/partial/_sidebar.html b/common/templates/partial/_sidebar.html index 891e18e7..be9b8196 100644 --- a/common/templates/partial/_sidebar.html +++ b/common/templates/partial/_sidebar.html @@ -6,6 +6,7 @@ {% load truncate %} {% load thumb %} {% load collection %} +{% load bleach_tags %}