Created
October 10, 2017 08:38
-
-
Save wdc63/358cab5f0d1905c43a28c0aa7d9aa5a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Content-Type:text/html;charset=utf-8"); | |
$htmlData = file_get_contents("test.html"); | |
} | |
?> | |
<!doctype html> | |
<html> | |
<head> | |
<script> | |
var gethtml = "<?php echo $htmlData ;?>"; | |
alert(gethtml) | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment