While participating in a forum discussion, the need to clean up HTML from "dangerous" constructs came up. In the present case it was needed to remove SCRIPT , OBJECT , APPLET , EMBBED , FRAMESET , IFRAME , FORM , INPUT , BUTTON and TEXTAREA elements (as far as I can think of) from the HTML...