Security
XSS Prevent
// basic
Security::xss($content)
// no aktif
Security::xss($content, 0)basic usage
controller
class welcome extends Controller
{
public function __construct()
{
// code here
}
public function index()
{
// echo "controller welcome method index";
// echo $data;
$data = [
"title" => "read markdown files",
"content" => "content here"
];
view("example_v", $data);
}
public function about()
{
echo "controller about";
}
}view
Last updated