One value, four sinks — pick an escaper

The same user input lands in four places at once. Choose an escaper and read why each sink is safe or still runs code. ✖ EXECUTES, ▲ BROKEN and ✔ SAFE are three different outcomes.

Escaper applied to the value

After escaping, the one value every sink receives:

1 · HTML text node

2 · Unquoted attribute

3 · Inside href="…"

4 · JS string in <script>