Skip to content

Commit

Permalink
Add picture/source
Browse files Browse the repository at this point in the history
Closes #352
  • Loading branch information
gjtorikian committed Jan 26, 2023
1 parent fa23ac8 commit 475a046
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/html_pipeline/sanitization_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class SanitizationFilter
# allowed through by default.
DEFAULT_CONFIG = Selma::Sanitizer::Config.freeze_config({
elements: ["h1", "h2", "h3", "h4", "h5", "h6", "br", "b", "i", "strong", "em", "a", "pre", "code",
"img", "tt", "div", "ins", "del", "sup", "sub", "p", "ol", "ul", "table", "thead", "tbody", "tfoot",
"img", "tt", "div", "ins", "del", "sup", "sub", "p", "picture", "ol", "ul", "table", "thead", "tbody", "tfoot",
"blockquote", "dl", "dt", "dd", "kbd", "q", "samp", "var", "hr", "ruby", "rt", "rp", "li", "tr", "td", "th",
"s", "strike", "summary", "details", "caption", "figure", "figcaption", "abbr", "bdo", "cite",
"dfn", "mark", "small", "span", "time", "wbr",],
"dfn", "mark", "small", "source", "span", "time", "wbr",],

attributes: {
"a" => ["href"],
Expand All @@ -30,6 +30,7 @@ class SanitizationFilter
"del" => ["cite"],
"ins" => ["cite"],
"q" => ["cite"],
"source" => ["srcset"],
all: ["abbr", "accept", "accept-charset", "accesskey", "action", "align", "alt", "aria-describedby",
"aria-hidden", "aria-label", "aria-labelledby", "axis", "border", "char",
"charoff", "charset", "checked", "clear", "cols", "colspan", "compact", "coords", "datetime", "dir",
Expand Down

0 comments on commit 475a046

Please sign in to comment.