Purifier

Introduction

The purifier service is a simple class that securely sanitizes strings.

Basic Usage

You can use the purifier utility by using the \Anomaly\Streams\Platform\Support\Purifier class.

use \Anomaly\Streams\Platform\Support\Purifier;

$purifier = new Purifier();

purify

The purify method returns a sanitized string.

use \Anomaly\Streams\Platform\Support\Purifier;

echo (new Purifier())->purify($dangerousHtml);