Skip to main content
Module

x/opengraph/mod.ts>getOGTags

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

Extracts all Open Graph 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