'Remove / convert eval to pure Javascript
Is there any way to remove "eval (test)" from index.html so that I can load it normally with <script src="js/evalTest.js"></script> ?
How can I remove var evalTest = ' and continue from the second Var and below..?
I want to unminify js but EVAL should be removed. Any clarification will be very helpful. Thank you!
var evalTest=
'var testStr="#open, #close, #clear,, #mobile, #stand, etc etc etc....),e.preventDefault()})});';
<!-- KEEP THIS -->
<script src="js/evalTest.js"></script>
<!--REMOVE THIS -->
<script>
eval(evalTest);
</script>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
