import { compile } from "html-to-text";
const compiledConvert = compile({
selectors: [{ selector: "img", format: "skip" }],
});
/**
* Converts HTML content to plain text
*/
export function htmlToPlainText(htmlContent: string): string {
if (!htmlContent) {
return "";
}
// TODO, we probably should also remove singlefile inline images from the content
return compiledConvert(htmlContent);
}
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/karakeep-app/karakeep'
If you have feedback or need assistance with the MCP directory API, please join our Discord server