MCPcopy Index your code
hub / github.com/microsoft/SandDance / sanitizeURL

Function sanitizeURL

docs/external/js/react-dom.development.js:1184–1192  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

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.

Callers 2

getValueForPropertyFunction · 0.70
setValueForPropertyFunction · 0.70

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected