class final Optional · pdftoolkit/pdf-to-html 0.1.2

PDF\Html\Html\SafetyFilter
Security profile permitted by 4.6.1, separate from semantic derivation.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(PDF\Html\DerivationPolicy $policy, PDF\Html\DerivationLimits $limits)

Declared by PDF\Html\Html\SafetyFilter · View the code ↗

Declared methods

css()

public function css(array $declarations): array
@param array<string, string> $declarations
@return array<string, string>

Declared by PDF\Html\Html\SafetyFilter · View the code ↗

cssText()

public function cssText(array $declarations): string
@param array<string, string> $declarations

Declared by PDF\Html\Html\SafetyFilter · View the code ↗

filter()

public function filter(PDF\Html\Html\Element $element, int $depth = 0, ?string $namespace = null): void

Declared by PDF\Html\Html\SafetyFilter · View the code ↗

fragment()

public function fragment(string $html, bool $math = false, bool $head = false): array
@return list<HtmlNode>

Declared by PDF\Html\Html\SafetyFilter · View the code ↗

stylesheet()

public function stylesheet(string $sheet): string
Restricted stylesheet syntax: no imports, URLs, escapes or nested rules.

Declared by PDF\Html\Html\SafetyFilter · View the code ↗

tagAllowed()

public function tagAllowed(string $tag, ?string $namespace = null): bool

Declared by PDF\Html\Html\SafetyFilter · View the code ↗

url()

public function url(string $url, bool $resource = false): ?string

Declared by PDF\Html\Html\SafetyFilter · View the code ↗

Properties

DeclarationOrigin and documentation
public array $diagnosticsPDF\Html\Html\SafetyFilter
@var list<Diagnostic>