Skip to content

Commit 1e953b7

Browse files
committed
fix: iframe の allowedAttributes に改行を追加し可読性を向上
1 parent 328bf56 commit 1e953b7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

packages/render/src/elements/embed-block.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,18 @@ export const DEFAULT_EMBED_ALLOWLIST: EmbedAllowlistEntry[] | null = [
7575
const SANITIZE_CONFIG: sanitizeHtml.IOptions = {
7676
allowedTags: ["iframe"],
7777
allowedAttributes: {
78-
iframe: ["src", "allow", "allowfullscreen", "frameborder", "height", "loading", "referrerpolicy", "sandbox", "title", "width"],
78+
iframe: [
79+
"src",
80+
"allow",
81+
"allowfullscreen",
82+
"frameborder",
83+
"height",
84+
"loading",
85+
"referrerpolicy",
86+
"sandbox",
87+
"title",
88+
"width",
89+
],
7990
},
8091
allowedSchemes: ["https"],
8192
};

0 commit comments

Comments
 (0)