How can one display external url content inside a local div element with jQuery?
The code I have tried fails to load, even if I am using php to handle cross-domain requests.
grab.php
<?php echo file_get_contents($_GET['url']); ?>
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="http://code.jquery.com/jquery-3.1.1.min.js"></script>
<script>
$(function(){
var contentURI= 'en.wikipedia.org/wiki/Film #mw-content-text';
$('#response').load('grab.php?url='+ contentURI);
});
</script>
</head>
<body>
<div id="response"></div>
</body>
</html>