It is possible to run embedded javascript in an html document from web ?
example:
I have a local web server with php
<?php
echo "<script>document.write('hello world')</script>";
I am getting the response with request
request("http://localhost", function(error , response, body ) {
console.log(body) //<script>document.write('hello world')</script>
}
i want to run the script not display, is there any easy way/method ?