Menerima Jasa Pembuatan Website Django & Wordpress (klik disini)
0
votes
118
views
Django: Custom safe excludes from dangerous XSS Injection
posted at July 12, 2018, 10:13 p.m. - 2 years, 1 month ago

Django Custom safe excludes from dangerous XSS Injection. Answered from: http://stackoverflow.com/a/41434870/6396981 from bs4 import BeautifulSoup from django import template from django.utils.html import escape register = template.Library() INVALID_TAGS = ['script', 'style'] …