Comment

Comment by hunter2_

The escape string doesn't need to be hard to guess, it can be as simple as a single character. The user interface (or whatever source of untrusted data) sanitizes that particular character before handing it off to the sensitive function, either by dropping it or escaping it such that it doesn't signal the end of untrusted data.
parent hunter2_ 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton