View this package for all Ubuntu releases →

How to install nginx-module-html-sanitize in Ubuntu 26.04 (resolute)

NGINX module to sanitize HTML 5 with whitelisted elements, attributes and CSS

Vendor: GetPageSpeed https://github.com/dvershinin/ngx_http_html_sanitize_module

Install

curl -fsSL https://extras.getpagespeed.com/release-latest.deb -o /tmp/getpagespeed-release.deb
sudo apt-get install -y /tmp/getpagespeed-release.deb
rm /tmp/getpagespeed-release.deb
sudo apt-get update
sudo apt-get install -y nginx-module-html-sanitize

Installing packages requires an active GetPageSpeed subscription. For other releases and channels, use the setup wizard.

Description

NGINX HTML Sanitize module is based on Google's gumbo-parser as HTML5 parser and hackers-painters's katana-parser as inline CSS parser to sanitize HTML with whitelisted elements, whitelisted attributes and whitelisted CSS property.

Packages

Package Size Built
nginx-module-html-sanitize_1.30.6+0.2.6-9~gps1+ubuntu2604+stable_amd64 156 KiB 2026-10-17
nginx-module-html-sanitize_1.30.6+0.2.6-9~gps1+ubuntu2604+stable_arm64 150 KiB 2026-10-17

Subscribe