Skip to content

Tag reference

@psalm-taint-escape

The @psalm-taint-escape tag marks a value as no longer tainted after passing through the described element. It is part of Psalm’s taint-analysis annotations.

Grammar

"@psalm-taint-escape" <Name> [ <Description> ]

Examples

A function that makes HTML safe.
/**
* @psalm-taint-escape html
*/
function escape(string $value): string

Names by platform

psalm
@psalm-taint-escape

Parsing a @psalm-taint-escape tag produces a PsalmTaintEscapeTag instance, carrying the parsed $identifier alongside the $name and optional $description every Tag already provides.

final class PsalmTaintEscapeTag extends IdentifierTag {}

See Psalm’s security analysis annotations.