filter-js-from-html

Installation
SKILL.md

Filter JavaScript from HTML

Overview

This skill provides guidance for tasks that require removing JavaScript and XSS attack vectors from HTML content while preserving the original formatting exactly. The key challenge is balancing comprehensive security filtering with format preservation.

Critical Requirements Analysis

Before implementation, identify and prioritize these requirements:

  1. Security completeness: All XSS vectors must be removed
  2. Format preservation: Output must be functionally identical to input except for harmful content removal
  3. Clean content handling: Files without XSS content should remain completely unchanged

These requirements often conflict - comprehensive parsing may alter formatting, while simple string replacement may miss attack vectors.

Approach Selection

Option 1: Regex-Based Surgical Removal (Recommended for Format Preservation)

Related skills

More from letta-ai/skills

Installs
35
Repository
letta-ai/skills
GitHub Stars
97
First Seen
Jan 24, 2026