Every line of '${} in javascript' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
49 function replaceJSinVue(text, code) { 50 const start = text.indexOf('<script>') + 8; 51 const end = text.indexOf('</script>'); 52 return text.replace(text.slice(start, end), code); 53 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code