Skip to content

Instantly share code, notes, and snippets.

View denchev's full-sized avatar

Marush Denchev denchev

View GitHub Profile
@LeVadim
LeVadim / .php
Last active June 29, 2016 14:32
I was looking for a while for ISO3166-1-Alpha-2 both with country currency code. I wasn't able to find the best example for this. I made my own. Cheers.
<?php
/**
* Created by PhpStorm.
* Date => 4/18/16
* Time => 1 =>49 PM
*/
return [
'AF' => 'AFG',
'AL' => 'ALL',
@mbijon
mbijon / xss_clean.php
Last active November 1, 2022 03:23
XSS filtering in PHP (cleans various UTF encodings & nested exploits)
<?php
/*
* XSS filter, recursively handles HTML tags & UTF encoding
* Optionally handles base64 encoding
*
* ***DEPRECATION RECOMMENDED*** Not updated or maintained since 2011
* A MAINTAINED & BETTER ALTERNATIVE => kses
* https://github.com/RichardVasquez/kses/
*
* This was built from numerous sources