Skip to main content
Glama
sanitize.ts271 B
import DOMPurify from 'dompurify'; import { JSDOM } from 'jsdom'; const window = new JSDOM('').window; const purify = DOMPurify(window as any); export function sanitize(dirty: string): string { return purify.sanitize(dirty, { ALLOWED_TAGS: [], ALLOWED_ATTR: [] }); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JesusMaster/github-see-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server