Documentation

HtmlFilter
in package

FinalYes
Tags
psalm-immutable

Table of Contents

Constants

ALLOW  = 'allow'
ESCAPE  = 'escape'
STRIP  = 'strip'

Methods

filter()  : string
Runs the given HTML through the given filter

Constants

Methods

filter()

Runs the given HTML through the given filter

public static filter(string $html, string $filter) : string
Parameters
$html : string

HTML input to be filtered

$filter : string

One of the HtmlFilter constants

Tags
throws
InvalidArgumentException

when an invalid $filter is given

psalm-pure
Return values
string

Filtered HTML


        
On this page

Search results