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 {
110
110
{ styleElement }
111
111
</ head >
112
112
< body >
113
- < div id = "root" dangerouslySetInnerHTML = { { __html : contentMarkup } } / >
113
+ < div id = "root" > { contentMarkup } </ div >
114
114
< script
115
115
defer
116
116
src = "https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.zh-Hant-TW"
117
117
/>
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 >
124
121
{ _ . map ( scripts , ( script , key ) => (
125
122
< script src = { script } key = { 'scripts' + key } charSet = "UTF-8" />
126
123
) ) }
You can’t perform that action at this time.
0 commit comments