From 8c6f307de812c69eaca258277e0699fef3ffb897 Mon Sep 17 00:00:00 2001 From: "adeel.tajamul" Date: Wed, 20 Apr 2022 15:21:30 +0500 Subject: [PATCH] fix: hyperlinks opening in iframe in discussions mfe --- lms/djangoapps/discussion/rest_api/render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/discussion/rest_api/render.py b/lms/djangoapps/discussion/rest_api/render.py index 303b26299c..fb302423c8 100644 --- a/lms/djangoapps/discussion/rest_api/render.py +++ b/lms/djangoapps/discussion/rest_api/render.py @@ -13,7 +13,7 @@ ALLOWED_TAGS = bleach.ALLOWED_TAGS + [ ] ALLOWED_PROTOCOLS = ["http", "https", "ftp", "mailto"] ALLOWED_ATTRIBUTES = { - "a": ["href", "title"], + "a": ["href", "title", "target", "rel"], "img": ["src", "alt", "title", "width", "height"], }