javascript – Should including an external webpage in PHP be dangerous in principle?

<?php
    include("https://example.com");
?>

I came across the opinion that including webpages in such pattern can be dangerous; further more, in XAMPP for windows php.ini there is allow_url_include=Off ; perhaps because some HTML files may include malicious JavaScript.