__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @file
* Emulation layer for code that used kses(), substituting in HTML Purifier.
*/
require_once dirname(__FILE__) . '/HTMLPurifier.auto.php';
function kses($string, $allowed_html, $allowed_protocols = null)
{
$config = HTMLPurifier_Config::createDefault();
$allowed_elements = array();
$allowed_attributes = array();
foreach ($allowed_html as $element => $attributes) {
$allowed_elements[$element] = true;
foreach ($attributes as $attribute => $x) {
$allowed_attributes["$element.$attribute"] = true;
}
}
$config->set('HTML.AllowedElements', $allowed_elements);
$config->set('HTML.AllowedAttributes', $allowed_attributes);
if ($allowed_protocols !== null) {
$config->set('URI.AllowedSchemes', $allowed_protocols);
}
$purifier = new HTMLPurifier($config);
return $purifier->purify($string);
}
// vim: et sw=4 sts=4
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| HTMLPurifier | Folder | 0755 |
|
|
| HTMLPurifier.auto.php | File | 274 B | 0644 |
|
| HTMLPurifier.autoload-legacy.php | File | 213 B | 0644 |
|
| HTMLPurifier.autoload.php | File | 910 B | 0644 |
|
| HTMLPurifier.composer.php | File | 101 B | 0644 |
|
| HTMLPurifier.func.php | File | 576 B | 0644 |
|
| HTMLPurifier.includes.php | File | 10.33 KB | 0644 |
|
| HTMLPurifier.kses.php | File | 923 B | 0644 |
|
| HTMLPurifier.path.php | File | 235 B | 0644 |
|
| HTMLPurifier.php | File | 9.95 KB | 0644 |
|
| HTMLPurifier.safe-includes.php | File | 13.26 KB | 0644 |
|