Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 407 Bytes

File metadata and controls

19 lines (14 loc) · 407 Bytes

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.