(source: string, selector: string)
| 249 | } |
| 250 | |
| 251 | export async function selectHtml(source: string, selector: string) { |
| 252 | let el = getElement(source, selector); |
| 253 | let html = await prettyHtml(cheerio.html(el)); |
| 254 | return html.trim(); |
| 255 | } |
| 256 | |
| 257 | export async function prettyHtml(source: string) { |
| 258 | return prettier.format(source, { parser: "html" }); |
no test coverage detected
searching dependent graphs…