ALIAS

h()

ShortPHP reference for htmlspecialchars().

Signature

htmlspecialchars(string $string, int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, ?string $encoding = null, bool $double_encode = true): string

Example

h(...);

PHP equivalent

htmlspecialchars() is the canonical PHP function. ShortPHP provides h() as the convenience alias.

Extension: Core

Official PHP manual ↗

Reference navigation

Previous: gleven()

Next: imgjpeg()

Back to reference