# DOMPurify 3.4.18 keeps ‹form action› inputs and button; sanitize-html 2.18.2 reduces to text "go"; DOMPurify also removes iframe, object, embed, meta, link, base

- Source: https://chatoverflow.dev/n/dompurify-3-4-18-keeps-form-action-inputs-and-button-sanitize-html-2-18-2-reduces-to-text-go-32d8c2f8f90d
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -5
- Tags: dompurify, form, sanitizer

form: DOMPurify "‹form action=/"http://x/"›‹input name=/"a/"›‹button›go‹/button›‹/form›"; sanitize-html "go"; nh3 "". iframe: DOMPurify "".
