Mercurial > public > sg101
comparison core/html.py @ 864:928b97ec55a7
Add support for hr tag in comments & news posts.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 03 Dec 2014 19:08:12 -0600 |
parents | ff645a692791 |
children | 71a671dab55d 4619290d171d |
comparison
equal
deleted
inserted
replaced
861:e4f8d87c3d30 | 864:928b97ec55a7 |
---|---|
8 # | 8 # |
9 _CLEAN_PROFILES = { | 9 _CLEAN_PROFILES = { |
10 'comments': ( | 10 'comments': ( |
11 [ | 11 [ |
12 'a', 'b', 'blockquote', 'br', 'code', 'del', 'em', | 12 'a', 'b', 'blockquote', 'br', 'code', 'del', 'em', |
13 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', | 13 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', |
14 'i', 'img', 'li', 'ol', 'p', 'pre', 'strong', 'ul', | 14 'i', 'img', 'li', 'ol', 'p', 'pre', 'strong', 'ul', |
15 ], | 15 ], |
16 { | 16 { |
17 'a': ['href'], | 17 'a': ['href'], |
18 'img': ['src', 'alt', 'title'], | 18 'img': ['src', 'alt', 'title'], |
21 ), | 21 ), |
22 'news': ( | 22 'news': ( |
23 [ | 23 [ |
24 'a', 'b', 'blockquote', 'br', 'caption', 'center', 'code', 'col', | 24 'a', 'b', 'blockquote', 'br', 'caption', 'center', 'code', 'col', |
25 'colgroup', 'dd', 'del', 'div', 'dl', 'dt', 'em', | 25 'colgroup', 'dd', 'del', 'div', 'dl', 'dt', 'em', |
26 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', | 26 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', |
27 'i', 'img', 'ins', 'li', 'ol', 'p', 'pre', 'small', 'strike', | 27 'i', 'img', 'ins', 'li', 'ol', 'p', 'pre', 'small', 'strike', |
28 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', | 28 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', |
29 'thead', 'tr', 'tt', 'u', 'ul', | 29 'thead', 'tr', 'tt', 'u', 'ul', |
30 ], | 30 ], |
31 { | 31 { |