Check if HTML content is probably readerable.
Pre-parsed Document to check
Optional
Readability check options
True if content appears to be an article
Quick check to determine if content extraction is likely to succeed. This is a heuristic check and may produce false positives/negatives.
import { parseHTML } from '../utils/html-parser.js';const doc = parseHTML(html);if (isProbablyReaderable(doc)) { const result = extractContent(doc);} Copy
import { parseHTML } from '../utils/html-parser.js';const doc = parseHTML(html);if (isProbablyReaderable(doc)) { const result = extractContent(doc);}
Check if HTML content is probably readerable.