Skip to content

Commit

Permalink
Allow alt-attribute on <img>-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kr4ssi authored and calzoneman committed Jan 29, 2021
1 parent a75917d commit e391a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xss.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const ALLOWED_SCHEMES = [
var ATTRIBUTE_MAP = {
a: ["href", "name", "target"],
font: ["size"],
img: ["src"],
img: ["src", "alt"],
marquee: ["behavior", "behaviour", "direction", "scrollamount"],
table: ["cellpadding", "cellspacing"],
th: ["colspan", "rowspan"],
Expand Down

0 comments on commit e391a80

Please sign in to comment.