style-attribute-sanitization

Official

Securely manage CSS in style attributes.

Authorkreuzberg-dev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the security risks associated with CSS injection and malicious styling within HTML style attributes, ensuring safer rendering of web content.

Core Features & Use Cases

  • CSS Sanitization: Parses and cleans CSS properties and values within style attributes.
  • Selective Removal/Preservation: Offers options to either completely remove style attributes or sanitize them to keep only safe styling.
  • Use Case: When processing user-generated HTML content, this skill can prevent the execution of dangerous CSS like expression() or javascript: URLs, while preserving essential styles like color or font-size.

Quick Start

Sanitize the style attributes in the provided HTML content, removing any potentially dangerous CSS.

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: style-attribute-sanitization
Download link: https://github.com/kreuzberg-dev/html-to-markdown/archive/main.zip#style-attribute-sanitization

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.