class League / CommonMark / Util / HtmlFilter
You are viewing an older version of the documentation. For the latest, please visit 2.4 documentation.
final

HtmlFilter

Constants

public

ALLOW

Default: 'allow'
public

ESCAPE

Default: 'escape'
public

STRIP

Default: 'strip'

Methods

public static

filter ( string $html , string $filter ) : string

Runs the given HTML through the given filter

Parameters

  • $html string
    HTML input to be filtered
  • $filter string
    One of the HtmlFilter constants