Convert all applicable characters to HTML entities.
static htmlEncode(int|null $flags, bool $doubleEncode = 1)
-
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.
static
String after being html encoded.