Skip to content

bachilli/sanitize-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sanitize-url

PHP port of braintree/sanitize-url typescript package.

How to use

use Bachilli\SanitizeUrl;

$sanitizeUrl = new SanitizeUrl();

$sanitizeUrl->sanitizeUrl('https://www.example.com');
// output: https://www.example.com

$sanitizeUrl->sanitizeUrl('javascript:alert(\'XSS\')');
// output: about:blank

Releases

No releases published

Packages

No packages published

Languages