Comment on Show HN: Memlink, a self-contained web page in a linkparentComments−Cloudef4yProbably could make this shorter by applying compression optimized for text. Also I wonder what happens if you enter | into the custom text field, can user input break this or will the special characters be escaped / handled some way?−sgtnoodle4yI'd imagine LZW would do a pretty good job without being too complicated.−hombre_fatal4yIt's percent-encoded.−throwaway413OP4yYep exactly - individual components of the string are encoded at different stages to prevent pipes and other characters from breaking the parser.Clearly though all the kinks are not worked out as others here have reported breaking it with some characters. Work in progress for sure!
Comments
Probably could make this shorter by applying compression optimized for text. Also I wonder what happens if you enter | into the custom text field, can user input break this or will the special characters be escaped / handled some way?
I'd imagine LZW would do a pretty good job without being too complicated.
It's percent-encoded.
Yep exactly - individual components of the string are encoded at different stages to prevent pipes and other characters from breaking the parser.
Clearly though all the kinks are not worked out as others here have reported breaking it with some characters. Work in progress for sure!