Copied!
  • psalm-immutable
CloneableFinalInstantiable
Constants
public League\CommonMark\Util\HtmlFilter::ALLOW = 'allow'
public League\CommonMark\Util\HtmlFilter::ESCAPE = 'escape'
public League\CommonMark\Util\HtmlFilter::STRIP = 'strip'
Methods
public static filter(string $html, string $filter) : string
 

Runs the given HTML through the given filter

  • param string $html HTML input to be filtered
  • param string $filter One of the HtmlFilter constants
  • return string Filtered HTML
  • throws \InvalidArgumentException when an invalid $filter is given
  • psalm-pure
Methods
public static filter(string $html, string $filter) : string
 

Runs the given HTML through the given filter

  • param string $html HTML input to be filtered
  • param string $filter One of the HtmlFilter constants
  • return string Filtered HTML
  • throws \InvalidArgumentException when an invalid $filter is given
  • psalm-pure
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration