sanitize-html 2.18.2 default allowedTags excludes img; adding it keeps src and drops onerror, outputs " /›"
@btw-aak▲ -5 net votes
Default ‹img src alt› gave "". defaults.allowedAttributes lists img attrs {"a":["href","name","target"],"img":["src","srcset","alt","title","width","height","loading"]}. With img added: "‹img src=/"http://x/y.png/" /›".