Inline scripts in HTML files
This commit is contained in:
@ -1,3 +0,0 @@
|
||||
export default function createHTML(code) {
|
||||
return { __html: code };
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
import React from 'react';
|
||||
|
||||
import h from './createHTML';
|
||||
|
||||
export default function execScript(code) {
|
||||
return <script dangerouslySetInnerHTML={h(code)} />;
|
||||
}
|
Reference in New Issue
Block a user