nh3 is a Python library that provides bindings to the Rust-based Ammonia HTML sanitization library. It enables safe rendering of untrusted HTML by removing potentially harmful content to prevent security issues like cross-site scripting and clickjacking.