NGINX module to sanitize HTML 5 with whitelisted elements, attributes and CSS
10 — 所有核心与模块指令——语法、默认值、上下文与真实配置示例。
html_sanitize
'html_sanitize' 指令配置 NGINX 对 HTML 输入进行清理,仅允许指定的元素、属性和 CSS 属性。
location
html_sanitize_attribute
指令 `html_sanitize_attribute` 指定在清理 HTML 内容时允许的 HTML 属性。
location
html_sanitize_element
`html_sanitize_element` 指令指定在 NGINX 中清理 HTML 内容时允许哪些 HTML 元素。
location
html_sanitize_hash_bucket_size
`html_sanitize_hash_bucket_size` 指令设置 NGINX HTML Sanitization 模块中用于 HTML…
location
html_sanitize_hash_max_size
定义用于存储已清理 HTML 元素的哈希表的最大大小。
location
html_sanitize_iframe_url_domain
根据指定的白名单,对 iframe 标签中出现的 URLs 的域名进行清理。
location
html_sanitize_iframe_url_protocol
`html_sanitize_iframe_url_protocol` 指令指定在已清理的 HTML 中 iframe `src` 属性允许使用的 URL…
location
html_sanitize_style_property
`html_sanitize_style_property` 指令指定在 NGINX 中对 HTML 内容进行清理时允许使用哪些 CSS 样式属性。
location
html_sanitize_url_domain
`html_sanitize_url_domain` 指令用于指定已清理 HTML 内容中 URL 的白名单域名。
location
html_sanitize_url_protocol
html_sanitize_url_protocol 指令指定在已清理的 HTML 内容中的链接所允许的 URL 协议。
location