Skip to content

Tag reference

@psalm-taint-unescape

The @psalm-taint-unescape tag marks a value as tainted again after passing through the described element, reversing an earlier @psalm-taint-escape. It is part of Psalm’s taint-analysis annotations.

Grammar

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

Examples

A function that makes a value unsafe again.
/**
* @psalm-taint-unescape html
*/
function decode(string $value): string

Names by platform

psalm
@psalm-taint-unescape

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

final class PsalmTaintUnescapeTag extends IdentifierTag {}

See Psalm’s security analysis annotations.