cbantisamy

Sanitize user-supplied HTML/XML to prevent XSS in ColdBox apps.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ColdBox/skills --skill cbantisamy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cbantisamy
Source: https://github.com/ColdBox/skills/tree/main/modules/cbantisamy
Command: npx skills add https://github.com/ColdBox/skills --skill cbantisamy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sanitize user-supplied HTML/XML to prevent XSS in ColdBox apps.

Core Features & Use Cases

  • Install and configure the cbantisamy module for ColdBox environments.
  • Select and apply policies (strict, relaxed, slashdot, ebay, myspace) or supply custom XML policy files.
  • Use the fluent sanitization API to clean HTML before rendering and during validation with CBValidation.

Quick Start

Install the cbantisamy module and start sanitizing user input with antiSamy.clean in your validation or rendering code.

Frequently Asked Questions about cbantisamy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sanitize HTML to prevent XSS in a ColdBox application?

To prevent XSS in a ColdBox application, sanitize user-supplied HTML using the cbantisamy module's fluent API, calling antiSamy.clean during validation or before rendering rich content.

What is AntiSamy HTML sanitization and when should I use it?

AntiSamy HTML sanitization is the process of cleaning user-supplied HTML/XML to prevent XSS attacks, needed when accepting and rendering rich user content in web applications.

Can I use custom XML policy files for HTML sanitization in ColdBox?

Yes, you can use custom XML policy files for HTML sanitization in ColdBox, or select from built-in policies like strict, relaxed, slashdot, ebay, and myspace to control filtering.

Does cbantisamy integrate with CBValidation for input sanitization?

Yes, cbantisamy integrates with CBValidation, allowing you to apply HTML sanitization rules during the input validation process to ensure safe data before it reaches your business logic.

What is the best way to configure HTML sanitization policies in ColdBox?

The best way to configure HTML sanitization policies in ColdBox is by defining policy settings in your application's config and using the cbantisamy module's integration hooks to apply them.