awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

2 个仓库

Awesome GitHub RepositoriesAttribute Injection Validators

Regular expression validation of HTML attributes and CSS properties to prevent injection attacks.

Distinct from Regex Pattern Validators: Focuses on security-centric injection prevention in HTML/CSS, unlike general string format validators.

Explore 2 awesome GitHub repositories matching software engineering & architecture · Attribute Injection Validators. Refine with filters or upvote what's useful.

Awesome Attribute Injection Validators GitHub Repositories

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • apostrophecms/sanitize-htmlapostrophecms 的头像

    apostrophecms/sanitize-html

    4,129在 GitHub 上查看↗

    这是一个 HTML 清理库,旨在从用户提交的 HTML 中删除危险标签和属性,以防止跨站脚本攻击 (XSS)。它充当内容过滤器,通过白名单机制保留特定元素和属性,同时转义或丢弃未经授权的标记。 该项目包含一个 HTML 转换引擎,允许使用自定义逻辑修改或替换标签和属性。它还具有 CSS 样式验证器,可根据允许的模式清理内联属性,以及用于限制主机名和方案的资源 URL 验证系统。 该库提供了用户输入清理、内联 CSS 验证和动态 HTML 转换功能。这些功能通过支持标签过滤和定义允许元素的解析器来实现。

    Uses regular expressions to validate attributes and CSS properties, preventing malicious code injection.

    JavaScript
    在 GitHub 上查看↗4,129
  • microcosm-cc/bluemondaymicrocosm-cc 的头像

    microcosm-cc/bluemonday

    3,688在 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

    Automatically appends security attributes like nofollow and noopener to outbound hyperlinks.

    Goallowlistgogolang
    在 GitHub 上查看↗3,688
  1. Home
  2. Software Engineering & Architecture
  3. Regex Pattern Validators
  4. Attribute Injection Validators

探索子标签

  • Security Attribute InjectionAutomatically adding security-focused attributes to HTML elements to mitigate web-based attacks. **Distinct from Attribute Injection Validators:** Focuses on the active injection of safety attributes like noopener, rather than just validating existing attributes.