Re:Don’t try to sanitize input – escape output
by jedberg on Thursday February 27, 2020 @04:59AM
(#22432002)
It’s more a question of how you get them in there. For example if your data store is JSON based, you’ll need to escape some strings.
What kind of data store can't hold all possible strings of characters? Except perhaps '\0'. I'll make an exception for '\0'.
(EDIT: There is of course the question of what you mean by a character. Sometimes it's an octet. Sometimes it's a Unicode code point.)