htmlEncode
Convert all applicable characters to HTML entities.
Description
static htmlEncode(int|null $flags, bool $doubleEncode = 1)
Parameters
-
int|null $flags
Optional flags. - bool $doubleEncode
When double_encode is turned off PHP will not encode existing html entities. The default is to convert everything.
Return Value
static
String after being html encoded.