Skip to content

Comment on Show HN: Memlink, a self-contained web page in a linkparent

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!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.