Skip to content

extractIds

Extracts the values of every id attribute in a chunk of HTML.

Import:

import { extractIds } from '@mnaoumov/typescript-dev-toolkit/docs-site/link-check';

Signature:

function extractIds(html: string): Set<string>

Parameters:

Parameter Type Description
html string The HTML to scan.

Returns: Set<string> — The set of element ids.