Recently I started using Laravel and found the {{}}
function to be very useful since even though it is a JavaScript , it does not activate, other than echo
in PHP .
I would like to know if you can do the same thing in PHP
Basic example:
<?php
echo "<script> alert(\"Hello! I am an alert box!!\");</script>";
?>
It will execute JavaScript , but in Laravel with {{}}
it will show what is written, but without executing JavaScript >.