Universal “clean'em all” sanitization functon: Such a function just should have never exists. Beside the fact that each context we are going to use our data in (SQL query,
HTML code, JS code, JSON string, etc. etc. etc.) require different formatting, there are even distinct sub-types of data literals in all these mediums - each require it's own formatting too. Which makes it's just impossible to create a single all-embracing function to format 'em all in once, without spoiling the source data yet leaving huge security holes at the same time.