Function

htmlspecialchars

Synopsis

htmlspecialchars(string, mixed ...): string

Area
Runtime\PS\Core\Strings\htmlspecialcharsareas

Description

htmlspecialchars escapes &, <, >, double and single quotes as HTML entities; it takes the $flags and later arguments and ignores them.

Usage

$value = htmlspecialchars($arguments);
$fn = htmlspecialchars(...);

See also