Skip to content

Instantly share code, notes, and snippets.

View jackbaron's full-sized avatar
😳
Do what you love, and love what you do !

Hoang Nhat jackbaron

😳
Do what you love, and love what you do !
  • Ho Chi Minh, Viet Nam
View GitHub Profile
@jackbaron
jackbaron / xss_clean.php
Created May 21, 2021 07:05 — forked from mbijon/xss_clean.php
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
@jackbaron
jackbaron / EloquentCheatSheet.md
Created March 29, 2021 04:01 — forked from avataru/EloquentCheatSheet.md
Eloquent relationships cheat sheet
@jackbaron
jackbaron / gist:ef8b4d8ed2b475c3d35666a8de340123
Created October 4, 2019 08:27 — forked from demouth/gist:3217440
mb_strwidth on JavaScript
;(function(ns){
/**
* mb_strwidth
* @param String
* @return int
* @see http://php.net/manual/ja/function.mb-strwidth.php
*/
var mb_strwidth = function(str){
var i=0,l=str.length,c='',length=0;
for(;i<l;i++){