I have a CloudPage with a form consisting of a text field. When the user submits on the form, the text field data is captured within a parameter and posted for processing on another Cloudpage. The purpose of the second page is to upsert the entry into a Data Extension.
All of the above works fine, however, my question relates to the step that is missing just before the data is inserted into a data extension. Does AMPScript have any specific functions for sanitizing string data before it is inserted into a Data Extension.
For example PHP has several functions for string sanitization such as,
Appreciate that frontend validation can also be used, but my query is specifically about in-built AMPScript functions as opposed to having to do the same thing with regex.