Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 348 Bytes

README.md

File metadata and controls

12 lines (7 loc) · 348 Bytes

evaluateScriptTags

Takes a string and processes the JavaScript contained within.

Loop through a html string and processes the script tags, with a single function

evaluateScriptTags("<div></div><script>alert("working");</script>");

I know people say its not good practice to use eval() but sometimes you may have to.