From 8abe5779233d901082b9e388b685240d676b5d9a Mon Sep 17 00:00:00 2001 From: Shane Date: Sun, 30 Mar 2014 15:41:17 +0100 Subject: [PATCH] Add figcaption to acceptable_elements I was trying to write a gitit plugin for figures with captions and I couldn't figure out why it wasn't working. Turns out it was the XSS sanitization filtering out the figcaption tags. --- Text/HTML/SanitizeXSS.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Text/HTML/SanitizeXSS.hs b/Text/HTML/SanitizeXSS.hs index 6164f58..d36ba24 100644 --- a/Text/HTML/SanitizeXSS.hs +++ b/Text/HTML/SanitizeXSS.hs @@ -152,9 +152,9 @@ acceptable_elements = ["a", "abbr", "acronym", "address", "area", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "command", "datagrid", "datalist", "dd", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "em", "event-source", "fieldset", - "figure", "footer", "font", "form", "header", "h1", "h2", "h3", "h4", - "h5", "h6", "hr", "i", "img", "input", "ins", "keygen", "kbd", - "label", "legend", "li", "m", "map", "menu", "meter", "multicol", + "figcaption", "figure", "footer", "font", "form", "header", "h1", "h2", + "h3", "h4", "h5", "h6", "hr", "i", "img", "input", "ins", "keygen", + "kbd", "label", "legend", "li", "m", "map", "menu", "meter", "multicol", "nav", "nextid", "ol", "output", "optgroup", "option", "p", "pre", "progress", "q", "s", "samp", "section", "select", "small", "sound", "source", "spacer", "span", "strike", "strong", "sub", "sup", "table",