Function: escape_html()

function escape_html(?string $text): ?string;

Escapes the HTML special characters in the text.

Parameters

Name Pass type Value type Default value Description
$text by value ?string

The text to be escaped.

Returns

?string

Returns the text with escaped HTML special characters.

Authors

Oleg Schildt

Package

Source code

See also