svg-security-hardening

Official

Securely process SVG elements

Authorkreuzberg-dev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the security risks associated with processing Scalable Vector Graphics (SVG) files, ensuring that potentially harmful content is neutralized.

Core Features & Use Cases

  • SVG Detection: Identifies SVG elements within content.
  • Dangerous Content Removal: Strips out script tags, JavaScript in style tags, and event handlers (e.g., onload, onclick).
  • URL Validation: Validates xlink:href, href, and image src attributes.
  • Handling Options: Offers choices to strip SVGs entirely, remove scripts/handlers, or extract text content.
  • Fallback: Uses alt text or title as a fallback.

Quick Start

Apply SVG security hardening to the provided SVG 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: svg-security-hardening
Download link: https://github.com/kreuzberg-dev/html-to-markdown/archive/main.zip#svg-security-hardening

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.