ammonia-sanitization
OfficialSanitize HTML with Ammonia
Authorkreuzberg-dev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the security risks associated with rendering untrusted HTML by sanitizing it to prevent cross-site scripting (XSS) attacks and other vulnerabilities.
Core Features & Use Cases
- Secure HTML Sanitization: Uses the Ammonia crate to clean HTML content based on configurable whitelists for tags and attributes.
- URL Validation: Ensures that links within the HTML use only safe schemes (http, https, mailto, ftp).
- Use Case: When displaying user-generated comments or forum posts that may contain HTML, use this Skill to clean the input before rendering it to prevent malicious code execution.
Quick Start
Sanitize the provided HTML string using the ammonia-sanitization skill, allowing only 'p', 'div', 'strong', and 'em' tags.
Dependency Matrix
Required Modules
None requiredComponents
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: ammonia-sanitization Download link: https://github.com/kreuzberg-dev/html-to-markdown/archive/main.zip#ammonia-sanitization Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.