This function is automatically called when {@link getRequestVar()} is called,
so you should not normally have to use it.
This function should be used when outputting data that isn't escaped and was
obtained from the user (for example when using the |raw twig filter on goal names).
_NOTE: Sanitized input should not be used directly in an SQL query; SQL placeholders
should still be used._
**Implementation Details**
- htmlspecialchars is used to escape text.
- Single quotes are not escaped so **Piwik's amazing community** will still be
**Piwik's amazing community**.
- Use of the magic_quotes setting will not break this method.
- Boolean, numeric and null values are not modified.
public static sanitizeInputValues ( mixed $value, boolean $alreadyStripslashed = false ) : mixed | ||
$value | mixed | The variable to be sanitized. If an array is supplied, the contents of the array will be sanitized recursively. The keys of the array will also be sanitized. |
$alreadyStripslashed | boolean | Implementation detail, ignore. |
return | mixed | The sanitized value. |