Logo

h()

ops...

Description

Wrapper for the function 'htmlspecialchars()', which converts special characters to HTML entities. Especially useful for preventing malicious code being injeted.

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