File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -110,17 +110,14 @@ export default class Html extends PureComponent {
110110 { styleElement }
111111 </ head >
112112 < body >
113- < div id = "root" dangerouslySetInnerHTML = { { __html : contentMarkup } } / >
113+ < div id = "root" > { contentMarkup } </ div >
114114 < script
115115 defer
116116 src = "https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.zh-Hant-TW"
117117 />
118- < script
119- dangerouslySetInnerHTML = { {
120- __html : `window.__REDUX_STATE__=${ serialize ( store . getState ( ) ) } ;` ,
121- } }
122- charSet = "UTF-8"
123- />
118+ < script charSet = "UTF-8" >
119+ { `window.__REDUX_STATE__=${ serialize ( store . getState ( ) ) } ;` }
120+ </ script >
124121 { _ . map ( scripts , ( script , key ) => (
125122 < script src = { script } key = { 'scripts' + key } charSet = "UTF-8" />
126123 ) ) }
You can’t perform that action at this time.
0 commit comments