← Back to context

Comment by friendzis

12 hours ago

The point is lost somewhere. Prepared statements for SQL, innerText for HTML and similar do not show tractability of escaping, they sidestep the escaping problem altogether.

Those are interfaces where escaping is no longer needed precisely because they deinterlace instructions from data. Escaping problem inherent to instruction+data channels. Yes, deinterlacing is not solution, not futile attempts to escape.

innerText escapes the text, that's the whole point of Trusted Types. Escaping isn't just "needed", it's literally how those features work.