(url)
| 1182 | var didWarn = false; |
| 1183 | |
| 1184 | function sanitizeURL(url) { |
| 1185 | { |
| 1186 | if (!didWarn && isJavaScriptProtocol.test(url)) { |
| 1187 | didWarn = true; |
| 1188 | |
| 1189 | error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url)); |
| 1190 | } |
| 1191 | } |
| 1192 | } |
| 1193 | |
| 1194 | /** |
| 1195 | * Get the value for a property on a node. Only used in DEV for SSR validation. |
no test coverage detected