Last updated: Tue, Jan 3, 2023 11:15 am
Return to Knowledgebase
Sanitizes a string, array or object using the Input class and returns it.
||string, array, or object
||Early versions of UserSpice can only sanitize strings and other single-level data structures. Modern versions of UserSpice can also sanitize arrays and objects.
||Description of Returned Data
||Returns a sanitized version of the data passed to it.
Note that depending on your use case, you may need to perform additional sanitization on data keys as you insert them into the database.