Purify
Component that has methods to escape dangerous characters from text, URL and other things.
Escaping HTML
use sirJuni\Framework\Components\Purify;
$safe_text = Purify::html("<h1>Hello</h1>");Sanitize URL
$url = "https://hello.com^/xyz*";
$safe_url = Purify::link($url); // returns https://hello.com%5E/xyz%2ALast updated