Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Dual use means extra ceremony with escaping

It depends, if you allow nesting you also need escaping.



Escaping of what?


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: