CRM_Core_HTMLInputCoder
in package
Class CRM_Core_HTMLInputCoder
Table of Contents
Methods
- encodeInput() : mixed
- going to filter the submitted values across XSS vulnerability.
- isSkippedField() : bool
Methods
encodeInput()
going to filter the submitted values across XSS vulnerability.
public
static encodeInput(array<string|int, mixed>|string &$values[, bool $castToString = TRUE ]) : mixed
Parameters
- $values : array<string|int, mixed>|string
- $castToString : bool = TRUE
-
If TRUE, all scalars will be filtered (and therefore cast to strings). If FALSE, then non-string values will be preserved
isSkippedField()
public
static isSkippedField(string $fldName) : bool
Parameters
- $fldName : string
Return values
bool —TRUE if encoding should be skipped for this field