openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
14 lines • 553 B
TypeScript
//#region src/infra/outbound/sanitize-text.d.ts
/**
* Convert common HTML tags to their plain-text/lightweight-markup equivalents
* and strip anything that remains.
*
* The function is intentionally conservative — it only targets tags that models
* are known to produce and avoids false positives on angle brackets in normal
* prose (e.g. `a < b`), in fenced blocks, and in inline code spans.
*/
declare function sanitizeForPlainText(text: string, options?: {
style?: "markdown";
}): string;
//#endregion
export { sanitizeForPlainText as t };