Just a code sanitization API
as a public service
It's free to use, and your data is not stored or read.
Max 512KB per request & 2 requests per second per IP (subject to change).
HTML - returns cleaned HTML
POST https://api.codesanitizer.com/v1/html?nojs=true&nosvg=true
Content-Type: text/html
<div>
<script>alert('xss')</script>
<svg><script>alert('xss')</script></svg>
</div>
SVG - returns cleaned SVG
POST https://api.codesanitizer.com/v1/svg?nojs=true&nohtml=true
Content-Type: image/svg+xml
<svg xmlns="http://www.w3.org/2000/svg">
<script>alert('xss')</script>
<path d="M0,0 L100,100" fill="none"/>
</svg>
SQL - returns cleaned and parametrized SQL (to PostgreSQL dialect)
POST https://api.codesanitizer.com/v1/psql
Content-Type: text/plain
SELECT * FROM users WHERE id = 1;
Subscribe to an email list to receive updates and status notifications
You can unsubscribe at any time.