(html: string)
| 2 | import { decode } from 'html-entities'; |
| 3 | |
| 4 | export function getCheerioDoc(html: string) { |
| 5 | return cheerio.load(html); |
| 6 | } |
| 7 | |
| 8 | export function metaTagContent(doc: cheerio.CheerioAPI, type: string, attr: string) { |
| 9 | const content = doc(`meta[${attr}='${type}']`).attr('content'); |
no outgoing calls
no test coverage detected