Extract robots metadata from HTML.
Parsed HTML document or raw HTML string
Robots metadata
Extracts robot directives from meta tags for general robots, Googlebot, Bingbot, and Google News bot.
// With parsed document (recommended for multiple extractions)const doc = parseHTML(htmlString);const robots = extractRobots(doc);// Or directly with HTML stringconst robots = extractRobots(htmlString); Copy
// With parsed document (recommended for multiple extractions)const doc = parseHTML(htmlString);const robots = extractRobots(doc);// Or directly with HTML stringconst robots = extractRobots(htmlString);
Extract robots metadata from HTML.