概要
Provides specialized guidance for removing JavaScript from HTML to prevent Cross-Site Scripting (XSS) while maintaining high-fidelity document structure. It covers the identification of diverse injection vectors—including script tags, event handlers, and dangerous URL schemes—and offers strategies for using robust parsers to handle malformed HTML. The skill emphasizes format preservation, ensuring that whitespace, entity encoding, and quote styles remain untouched during the transformation, making it essential for building secure sanitization tools and processing user-generated content.