API / Minn\Support / KsesEntities

KsesEntities final class

Minn\Support\KsesEntities · public/minn/src/Minn/Support/KsesEntities.php · 30 lines

The named references kses keeps as written: the list captured from the reference (data/kses.json) plus the five XML ones. Any other name is stored as "&name;".

Uses 1

Constants and properties

privatestatic ?array $table
privatestatic ?array $known

Public

staticknown(string $name): bool#

Whether "&name;" is a reference kses leaves alone.

staticallowlist(string $context): array#

An allowlist the reference ships, by context ("post" or "data").

@return array<string, array<string, mixed>>

Internals 1

Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.

privatetable(): array#
@return array<string, mixed>