i am trying to echo a html files contents from a php script. Quite simple implementation
$response=file_get_contents("second.html");
echo $response;
When i hit the html file directly all the content seems ok but when i get the echoed string it is different, The html contains javascript with utf8 strings and escape characters. It seems that "echo" is changing the string because i tried saving the $response string in a second html file and that appears ok also. My question is, is there a way to just plainly give the string with no processing.
Also it seems the echoed html works on firefox, but not on chrome, the file html works on both.
readfile('second.html');.