Skip to content

tres-framework/Tres-security

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tres security

This is the security package used for Tres Framework. This is a stand-alone package, which means that it can be used without the framework.

This package includes:

  • XSS protection

Examples

<?php

use packages\Tres\security\XSS\HTML as HTMLXSS;

$string = '<b>Hello world!</b>';

echo HTMLXSS::specialchars($string);
<?php

use packages\Tres\security\XSS\HTML as HTMLXSS;

function e($str, $flags = ENT_QUOTES, $encoding = 'UTF-8'){
    return HTMLXSS::specialchars($str, $flags, $encoding);
}

echo e('<a href="link.php">Not a working link</a>');

About

Tres security (stand-alone package)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages