diff --git a/brutaldon/settings.py b/brutaldon/settings.py
index e3c19f8..dfb5080 100644
--- a/brutaldon/settings.py
+++ b/brutaldon/settings.py
@@ -38,6 +38,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'widget_tweaks',
+ 'sanitizer',
'django.contrib.humanize',
'brutaldon',
]
@@ -122,3 +123,7 @@ USE_TZ = True
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
+
+# Sanitizer settings
+SANITIZER_ALLOWED_TAGS = ['a', 'p', 'img', 'br', 'i', 'strong']
+SANITIZER_ALLOWED_ATTRIBUTES = ['href', 'src']
diff --git a/brutaldon/templates/main/toot_partial.html b/brutaldon/templates/main/toot_partial.html
index 7a7b01b..d4f31b9 100644
--- a/brutaldon/templates/main/toot_partial.html
+++ b/brutaldon/templates/main/toot_partial.html
@@ -1,4 +1,5 @@
{% load humanize %}
+{% load sanitizer %}