4 ms·
> Dual use means extra ceremony with escaping It depends, if you allow nesting you also need escaping.
by renox 1y ago
> Dual use means extra ceremony with escaping
It depends, if you allow nesting you also need escaping.
- ivan_gammel 1y agoEscaping of what?
- renox 1y agoOf 'yourself', if a text field contain embedded/nested text you need to escape the delimiter.
- ivan_gammel 1y agoThis case is much rarer than escaping quotes or whitespace. It will happen only if the content of the block will contain unsanitized inputs. In such case a control character for escaping will help, or, if you can have 2x range for control characters, you can use one bit for escaping. E.g. 0x1-0x7 - delimiters, 0x8-0xF - escaped delimiters.