wdpr
    Preparing search index...

    HTML, CSS, URL, and attribute sanitization utilities for the render pipeline.

    Every piece of user-supplied content that flows into the HTML output must pass through one of these functions to prevent Cross-Site Scripting (XSS) and CSS injection attacks.

    The module provides several layers of defense:

    Functions

    escapeAttr
    escapeHtml
    escapeJsString
    escapeStyleContent
    isDangerousCssValue
    isDangerousUrl
    isSafeAttribute
    isValidCssColor
    isValidEmail
    sanitizeAttributes
    sanitizeCssColor
    sanitizeStyleValue