PHP code example of owlgrin / xss
1. Go to this page and download the library: Download owlgrin/xss 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/ */
owlgrin / xss example snippets
'Owlgrin\Xss\XssServiceProvider',
'Xss' => 'Owlgrin\Xss\XssFacade',
$input = Input::get('html');
$cleanedHtml = Xss::clean($input);
$input = Input::get('html');
$cleanedHtml = Xss::clean($input, ['iframe']);