ERB Escape Audit - Rails XSS lint

Finds unescaped output in Rails ERB templates - raw, html_safe, <%==, script and href context - and names the escaping helper that fixes each line. Runs entirely in your browser — nothing is uploaded.

Same engine as the VS Code extension, byte for byte.

Get the complete version $29

This page is the working piece. The full pack has everything below.

15 rules that find every line in a Rails .erb view where output escaping was switched off or was the wrong escaping.

A freelance Rails developer doing the same template review by hand bills $75-$150 an hour.

Buy the full version — $29

Questions people ask

What does ERB Escape Audit actually do?

It reads Rails .erb templates and reports every line where HTML escaping was switched off or was the wrong escaping for the context: raw, .html_safe, the <%== tag, render inline:, interpolation inside script or style blocks, href and on-event attributes, unquoted attributes, content_tag with escape false, and sanitize without an allowlist. Fifteen rules, each naming the helper that fixes the line.

Who is this for?

Rails developers who ship server-rendered views, and the person who reviews those views before a release. It is most useful on codebases where an AI assistant writes template code, because assistants reach for raw and html_safe to make markup render and the result looks correct in the browser either way.

Why is a free linter not enough?

Ruby linters parse Ruby, so they see the ERB tag but not the HTML around it. Whether a value needs j, json_escape, a quoted attribute or a scheme check depends on that surrounding markup. Static scanners that do know Rails flag raw and html_safe but not an unquoted src attribute or interpolation inside a style block.

What is free and what needs a licence?

Auditing the file you have open is free and complete: every finding, every line number, every fix, no cap and no watermark. The licence covers a different axis, scope and ownership. It sweeps every .erb file in the workspace in one run and writes a dated Markdown or CSV report you keep as evidence.

What would this cost to do by hand?

A freelance Rails developer doing the same template review bills $75 to $150 an hour on the open market, and a mid-sized app has hundreds of .erb files. The extension is $29 once, one licence key per person or CI seat, with a seven-day full refund.

Ask about this tool

One question, answered by the person who built it. Your email only if you want the answer sent.

Want the full version?
Enter your email and we send the download link.
ENDEJAESPT

Find a tool