I have the following code to write a new file but I'm having problems with the content because I'm not able to write "" inside "". What should I do?
$done = fwrite (
$fp,
"<html><p id="fn"></p><script>document.getElementById ("fn").innerHTML = fn;</script></html>"
);