class CRM_Core_HTMLInputCoder

Class CRM_Core_HTMLInputCoder

Methods

static bool
isSkippedField(string $fldName)

No description

static 
encodeInput(array|string $values, bool $castToString = TRUE)

going to filter the submitted values across XSS vulnerability.

Details

at line 38
static bool isSkippedField(string $fldName)

Parameters

string $fldName

Return Value

bool TRUE if encoding should be skipped for this field

at line 51
static encodeInput(array|string $values, bool $castToString = TRUE)

going to filter the submitted values across XSS vulnerability.

Parameters

array|string $values
bool $castToString If TRUE, all scalars will be filtered (and therefore cast to strings). If FALSE, then non-string values will be preserved