plugin text syntaxes: added 'poster' and 'controls' in allowed attributes for cleanXHTML
This commit is contained in:
parent
dc8f07aec4
commit
b28dcdbfb3
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ _SYNTAX_CURRENT = "@CURRENT@"
|
|||
# list initialy based on feedparser list (http://pythonhosted.org/feedparser/html-sanitization.html)
|
||||
STYLES_WHITELIST = ("azimuth", "background-color", "border-bottom-color", "border-collapse", "border-color", "border-left-color", "border-right-color", "border-top-color", "clear", "color", "cursor", "direction", "display", "elevation", "float", "font", "font-family", "font-size", "font-style", "font-variant", "font-weight", "height", "letter-spacing", "line-height", "overflow", "pause", "pause-after", "pause-before", "pitch", "pitch-range", "richness", "speak", "speak-header", "speak-numeral", "speak-punctuation", "speech-rate", "stress", "text-align", "text-decoration", "text-indent", "unicode-bidi", "vertical-align", "voice-family", "volume", "white-space", "width")
|
||||
|
||||
SAFE_ATTRS = html.defs.safe_attrs.union(('style',))
|
||||
SAFE_ATTRS = html.defs.safe_attrs.union(('style', 'poster', 'controls'))
|
||||
STYLES_VALUES_REGEX = r'^(' + '|'.join(['([a-z-]+)', # alphabetical names
|
||||
'(#[0-9a-f]+)', # hex value
|
||||
'(\d+(.\d+)? *(|%|em|ex|px|in|cm|mm|pt|pc))', # values with units (or not)
|
||||
|
|
|
|||
Loading…
Reference in a new issue