From 22eecc22e4917cb4fffadbd12a26da4bc1e7350b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 27 Aug 2013 08:51:18 +0000 Subject: [PATCH] allow more html5 tags --- ox/html.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ox/html.py b/ox/html.py index 4824002..909553f 100644 --- a/ox/html.py +++ b/ox/html.py @@ -225,15 +225,15 @@ def sanitize_html(html, tags=None, wikilinks=False): if not tags: tags = [ # inline formatting - 'b', 'code', 'i', 's', 'sub', 'sup', 'u', + 'b', 'bdi', 'code', 'em', 'i', 'q', 's', 'span', 'strong', 'sub', 'sup', 'u', # block formatting - 'blockquote', 'h1', 'h2', 'h3', 'p', 'pre', + 'blockquote', 'cite', 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'pre', # lists 'li', 'ol', 'ul', # tables 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', # other - 'a', 'br', 'img', + 'a', 'br', 'img', 'figure', 'figcaption', # special 'rtl', '[]' ]