3 ms·
Exactly. What you need is not a “tainted” type and assume everything that’s not it is safe. That’s not the case. Html-escaping a string does not make it safe fo
by masklinn 6y ago
Exactly. What you need is not a “tainted” type and assume everything that’s not it is safe. That’s not the case. Html-escaping a string does not make it safe for SQL or whatever.
What you need is a safe type for each use case, and ways to convert values to that (or mark them as that depending on your TS).