(html: string)
| 93 | } |
| 94 | |
| 95 | function convertHtmlToPlainText(html: string): string { |
| 96 | if (!html) return '' |
| 97 | return htmlToText(html, { |
| 98 | wordwrap: false, |
| 99 | selectors: [ |
| 100 | { selector: 'a', options: { hideLinkHrefIfSameAsText: true, noAnchorUrl: true } }, |
| 101 | { selector: 'img', format: 'skip' }, |
| 102 | { selector: 'script', format: 'skip' }, |
| 103 | { selector: 'style', format: 'skip' }, |
| 104 | ], |
| 105 | preserveNewlines: true, |
| 106 | }) |
| 107 | } |
| 108 | |
| 109 | export const outlookPollingHandler: PollingProviderHandler = { |
| 110 | provider: 'outlook', |
no outgoing calls
no test coverage detected