(html)
| 133 | } |
| 134 | |
| 135 | async setHtmlContext(html) { |
| 136 | let processedHTML = html |
| 137 | |
| 138 | if (this.htmlConfig.simplify) { |
| 139 | processedHTML = removeNonInteractiveElements(processedHTML, this.htmlConfig) |
| 140 | } |
| 141 | |
| 142 | if (this.htmlConfig.minify) processedHTML = await minifyHtml(processedHTML) |
| 143 | if (this.htmlConfig.maxLength) processedHTML = splitByChunks(processedHTML, this.htmlConfig.maxLength)[0] |
| 144 | |
| 145 | this.minifiedHtml = processedHTML |
| 146 | } |
| 147 | |
| 148 | getResponse() { |
| 149 | return this.response || '' |
no test coverage detected