first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?php
/**
* Plik z klasa stXssSafe
*
* @package stXssSafePlugin
* @author Michal Prochowski <michal.prochowski@sote.pl>
* @copyright SOTE
* @license SOTE
* @version
*/
/**
* Klasa stXssSafe
*
* @package stXssSafePlugin
*/
class stXssSafe
{
/**
* Remove dirt from html
*
* @param string $dirtyHtml
* @return string clean Html
*/
static public function cleanHtml($dirtyHtml)
{
sfLoader::loadHelpers('XssSafe');
return esc_xsssafe($dirtyHtml);
}
public static function clean($value)
{
$value = htmlspecialchars($value, ENT_COMPAT, 'UTF-8');
return str_replace('&amp;', '&', $value);
}
}