Extract preview text from HTML emails for inbox displays.
Email clients need a plain text preview for inbox listings, but emails are HTML.
Extract the first 100-200 characters of text from HTML emails for preview.
const res = await fetch("https://api.apiverve.com/v1/htmltotext", { method: "POST", headers: { "x-api-key": "YOUR_API_KEY" } });
const { data } = await res.json();
console.log(data);