feat: enforce browser security boundaries

This commit is contained in:
donghyeon-ka
2026-07-25 21:14:32 +09:00
parent 675603c3a2
commit 6f88915c7a
11 changed files with 163 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
export function attachScript(source) {
const script = document.createElement("script");
script.src = source;
document.head.append(script);
}
+1
View File
@@ -0,0 +1 @@
export const execute = (source) => eval(source);
+3
View File
@@ -0,0 +1,3 @@
export function RawHtml({ value }) {
return <div dangerouslySetInnerHTML={{ __html: value }} />;
}