PHPRestored your last edit ·
Result
PHP runs on a web server
Browsers can't run PHP. To try this code: install XAMPP, save it as a file in htdocs (use Download above), then open it at http://localhost/yourfile.php.
Output
Unsafe: <script>alert('hacked')</script> & "quotes"
Safe: <script>alert('hacked')</script> & "quotes"