Skip to main content
Module

x/opengraph/mod.ts>getMetaTags

Fetches and parses data from website to get their OpenGraph metadata
function getMetaTags
import { getMetaTags } from "https://deno.land/x/opengraph@v0.0.1/mod.ts";

Extracts all meta tags from a given HTML string or URL

Parameters

htmlOrUrl: string

{string} HTML string or URL to parse, if URL is given it will be fetched

optional
prefix = [UNSUPPORTED]

{string} Optional prefix to filter meta tags, e.g. 'og:' or 'twitter:'