From: Waylan L. <wa...@gm...> - 2008-08-22 21:03:09
|
On Fri, Aug 22, 2008 at 3:49 PM, Yuri Takhteyev <qar...@gm...> wrote: [snip] > with our placeholders via extensions. So, I we should do both: use a > meaningless combination of letters (without any punctuation), and then > wrap it with characters that users aren't allowed to put in the input > (STX and ETX). E.g.: > > STX = u'\u0002' # Use STX ("Start of text") for start-of-placeholder > ETX = u'\u0003' # Use ETX ("End of text") for end-of-placeholder > HTML_PLACEHOLDER_PREFIX = STX+"wyxhzde38k" > HTML_PLACEHOLDER = HTML_PLACEHOLDER_PREFIX + "%d"+ETX > INLINE_PLACEHOLDER_PREFIX = STX+"0ix2bavflj" > INLINE_PLACEHOLDER_SUFFIX = ETX > AMP_SUBSTITUTE = STX+"k75lziz62a"+ETX > > Actually, come to think of it, perhaps even that %d is not a good idea. > > (I am not checking this in, since Waylan seems to be actively working > on the file.) > Go ahead Yuri. I'm working on something else right now. -- ---- Waylan Limberg wa...@gm... |