From 7c9887410c18922d7459eed2bc775d6c8089d2e6 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Mon, 14 Sep 2015 22:47:21 +0200 Subject: [PATCH] Allow definition lists in sanitized HTML --- ox/html.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ox/html.py b/ox/html.py index dcdb246..d63d529 100644 --- a/ox/html.py +++ b/ox/html.py @@ -259,6 +259,10 @@ def sanitize_html(html, tags=None, global_attributes=[]): {'name': 'li'}, {'name': 'ol'}, {'name': 'ul'}, + # definition lists + {'name': 'dl'}, + {'name': 'dt'}, + {'name': 'dd'}, # tables {'name': 'table'}, {'name': 'tbody'},