event-handler-removal

Official

Sanitize HTML by removing event handlers.

Authorkreuzberg-dev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the security risk posed by JavaScript event handlers embedded within HTML content, preventing potential cross-site scripting (XSS) attacks and unintended script execution.

Core Features & Use Cases

  • Comprehensive Event Handler Removal: Identifies and removes standard HTML event attributes (e.g., onclick, onload) and SVG event attributes.
  • Robust Pattern Matching: Utilizes wildcard pattern matching to catch variations and encoded forms of event handlers.
  • Use Case: When processing user-submitted HTML content, use this Skill to ensure that no malicious JavaScript can be injected through event attributes, making the content safe for display.

Quick Start

Use the event-handler-removal skill to sanitize the provided HTML content.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: event-handler-removal
Download link: https://github.com/kreuzberg-dev/html-to-markdown/archive/main.zip#event-handler-removal

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.