Add <ol start="..."> to allowed attributes list

Fixes vector-im/riot-web#3273

Signed-off-by: Shell Turner <cam.turn@gmail.com>
pull/21833/head
Shell Turner 2017-04-02 11:19:50 +01:00 committed by GitHub
parent a9cd1bfd4b
commit 3ff54b8e4b
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ var sanitizeHtmlParams = {
// We don't currently allow img itself by default, but this
// would make sense if we did
img: ['src'],
ol: ['start'],
},
// Lots of these won't come up by default because we don't allow them
selfClosing: ['img', 'br', 'hr', 'area', 'base', 'basefont', 'input', 'link', 'meta'],