Skip to content

Commit

Permalink
sanitize HTML again
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Oct 25, 2021
1 parent 55b9e3e commit 0ca3f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function render(markdown: string, opts: RenderOptions = {}): string {
if (opts.allowIframes) {
allowedTags.push("iframe");
}
return html;

return sanitizeHtml(html, {
allowedTags,
allowedAttributes: {
Expand Down

0 comments on commit 0ca3f76

Please sign in to comment.