PHP code example of crocodile2u / safer-blitz
1. Go to this page and download the library: Download crocodile2u/safer-blitz library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
crocodile2u / safer-blitz example snippets
$view = new View("article.tpl");
$view->extend("layout.tpl");
echo $view->parse();
$view = new \SaferBlitz\View;
$view->set(["some_variable" => "some nasty XSS attempt: \"><script>alert(\"XSS\");</script>"]);
$view->display();