Hacker News new | ask | show | jobs
by ivan_gammel 263 days ago
Escaping of what?
1 comments

Of 'yourself', if a text field contain embedded/nested text you need to escape the delimiter.
This 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.