awesome-repositories.com
Blog
MCP
awesome-repositories.com

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectServer MCPDespreCum realizăm clasamentulPresă
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
leizongmin avatar

leizongmin/js-xss

0
View on GitHub↗
5,319 stele·633 fork-uri·HTML·10 vizualizărijsxss.com↗

Js Xss

js-xss este un sanitizer HTML XSS și un filtru HTML bazat pe whitelist conceput pentru a elimina codul malițios din HTML-ul neverificat. Servește ca un instrument pentru prevenirea cross-site scripting-ului și gestionarea conținutului generat de utilizatori prin curățarea șirurilor HTML pentru a asigura o randare sigură în browser.

Biblioteca include un validator de stil CSS pentru a curăța stilurile inline în raport cu un whitelist și un purificator de conținut HTML capabil să elimine toate tag-urile pentru a extrage textul brut. Permite filtrarea HTML personalizată prin definirea unor reguli specifice și funcții handler pentru a controla elementele și atributele permise.

Instrumentul acoperă o gamă largă de capabilități de sanitizare, inclusiv filtrarea prefixelor de atribute și tag-uri, eliminarea conținutului nepermis și urmărirea elementelor eliminate. Oferă, de asemenea, mecanisme pentru codificarea escape la nivel de caracter și gestionarea elementelor personalizate prin funcții callback.

Utilitarele CLI sunt disponibile pentru procesarea fișierelor HTML și testarea interactivă a regulilor de filtrare.

Features

  • Cross-Site Scripting Prevention - Filters untrusted HTML input to remove malicious scripts and prevent cross-site scripting attacks.
  • HTML Content Sanitization - Removes malicious scripts, disallowed tags, and HTML comments from untrusted content to prevent XSS attacks.
  • HTML Element Filters - Provides mechanisms to define permitted HTML tags and strip unsafe elements based on a whitelist.
  • HTML Content Filters - Provides precise control over permitted HTML elements and attributes using custom rules and handlers.
  • Character Escaping - Implements mechanisms to replace sensitive characters with HTML entities to prevent browser-based injection attacks.
  • CSS Sanitizers - Validates and scrubs inline CSS style attributes against a whitelist to prevent malicious styling injection.
  • Customizable Sanitization Rules - Enables the definition of whitelists and replacement functions to precisely control how tags and attributes are processed.
  • Whitelist-Based Style Scrubbing - Scrubs inline style attribute values by matching individual CSS properties against a whitelist of safe styles.
  • Inline Style Scrubbers - Scrubs inline CSS styles against a whitelist to prevent malicious styling in HTML content.
  • User-Generated HTML Validation - Processes and validates HTML submitted by users to maintain a secure environment while allowing limited formatting.
  • Custom Sanitization Handlers - Provides callback functions to determine how specific HTML tags and attributes are processed, replaced, or modified.
  • Custom Validation Logic - Implements custom functions to handle specific tags or attributes during the filtering process for flexible validation.
  • Full Tag Stripping - Provides a mode to strip every HTML element from a string to return only raw text.
  • Web Application Security - Implements security layers that scrub dangerous elements and inline styles from dynamic content.
  • Element Interception Callbacks - Provides custom handler functions that execute when specific tags or attributes are encountered during the sanitization process.
  • Regular Expression-Based Parsing - Uses regular expression patterns to identify and isolate HTML tags and attributes for evaluation and removal.
  • Attribute Prefix Filtering - Allows HTML attributes to persist if they start with a specified string, enabling custom data attributes while blocking dangerous ones.
  • Raw Text Extractors - Strips all HTML tags from a string to extract only raw text content.
  • Sanitization Lifecycle Hooks - Executes custom handler functions when specific tags, attributes, or ignored elements are encountered.
  • Node.js Frameworks and Tools - XSS filter based on a whitelist.
  • Security and Sanitization - Whitelist-based HTML sanitization.
  • Security Middleware - Sanitizes untrusted HTML input using configurable whitelists to prevent XSS.
  • Security & Privacy - Filters untrusted HTML to prevent XSS.

Istoric stele

Graficul istoricului de stele pentru leizongmin/js-xssGraficul istoricului de stele pentru leizongmin/js-xss

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Alternative open-source pentru Js Xss

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Js Xss.
  • apostrophecms/sanitize-htmlAvatar apostrophecms

    apostrophecms/sanitize-html

    4,129Vezi pe GitHub↗

    This is an HTML sanitization library designed to remove dangerous tags and attributes from user-submitted HTML to prevent cross-site scripting attacks. It functions as a content filter that whitelists specific elements and attributes while escaping or discarding unauthorized markup. The project includes an HTML transformation engine that allows for the modification or replacement of tags and attributes using custom logic. It also features a CSS style validator to clean inline properties against permitted patterns and a system for resource URL validation to restrict hostnames and schemes. The

    JavaScript
    Vezi pe GitHub↗4,129
  • cure53/dompurifyAvatar cure53

    cure53/DOMPurify

    16,638Vezi pe GitHub↗

    DOMPurify is a security-focused library designed to sanitize untrusted HTML input, preventing cross-site scripting attacks by stripping malicious code while preserving safe content. It functions as a utility for secure document object model manipulation, ensuring that user-provided rich text can be rendered safely within web applications. The library distinguishes itself through a single-pass, mutation-observer-free processing model that operates on detached document fragments to avoid triggering unintended side effects. It employs recursive node traversal and context-aware logic to inspect a

    JavaScriptcross-site-scriptingdomdompurify
    Vezi pe GitHub↗16,638
  • microcosm-cc/bluemondayAvatar microcosm-cc

    microcosm-cc/bluemonday

    3,688Vezi pe GitHub↗

    bluemonday is a Go library for scrubbing user-generated HTML content to prevent cross-site scripting and other injection attacks. It functions as an HTML policy engine and sanitizer that removes dangerous scripts and malicious tags by applying configurable element and attribute allowlists. The project distinguishes itself through a rule-based system that utilizes regular expressions and name-based lists to define permitted tags, attributes, and CSS styles. It includes a URL security validator that enforces safe protocols and automatically injects security attributes such as nofollow and noope

    Goallowlistgogolang
    Vezi pe GitHub↗3,688
  • crowdsecurity/crowdsecAvatar crowdsecurity

    crowdsecurity/crowdsec

    12,574Vezi pe GitHub↗

    CrowdSec is a collaborative, distributed security engine designed for threat detection and infrastructure protection. It functions as an intrusion detection system that parses logs and network traffic to identify malicious patterns, utilizing a bucket-based threshold detection model to aggregate events and trigger alerts. The platform is built on a modular architecture that includes a centralized local API server for managing security signals and a relational database for persistent storage of remediation decisions. What distinguishes the project is its decoupled enforcement model, which offl

    Goattacks-preventiondetectionids
    Vezi pe GitHub↗12,574
Vezi toate cele 30 alternative pentru Js Xss→

Întrebări frecvente

Ce face leizongmin/js-xss?

js-xss este un sanitizer HTML XSS și un filtru HTML bazat pe whitelist conceput pentru a elimina codul malițios din HTML-ul neverificat. Servește ca un instrument pentru prevenirea cross-site scripting-ului și gestionarea conținutului generat de utilizatori prin curățarea șirurilor HTML pentru a asigura o randare sigură în browser.

Care sunt principalele funcționalități ale leizongmin/js-xss?

Principalele funcționalități ale leizongmin/js-xss sunt: Cross-Site Scripting Prevention, HTML Content Sanitization, HTML Element Filters, HTML Content Filters, Character Escaping, CSS Sanitizers, Customizable Sanitization Rules, Whitelist-Based Style Scrubbing.

Care sunt câteva alternative open-source pentru leizongmin/js-xss?

Alternativele open-source pentru leizongmin/js-xss includ: apostrophecms/sanitize-html — This is an HTML sanitization library designed to remove dangerous tags and attributes from user-submitted HTML to… cure53/dompurify — DOMPurify is a security-focused library designed to sanitize untrusted HTML input, preventing cross-site scripting… microcosm-cc/bluemonday — bluemonday is a Go library for scrubbing user-generated HTML content to prevent cross-site scripting and other… crowdsecurity/crowdsec — CrowdSec is a collaborative, distributed security engine designed for threat detection and infrastructure protection.… cnodejs/nodeclub — Nodeclub is a self-hosted community forum and bulletin board system built as a Node.js web application. It serves as a… jhollingworth/bootstrap-wysihtml5 — bootstrap-wysihtml5 is a rich text editor that integrates with the Bootstrap CSS framework to provide a visual…