Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/html_parser/src/utils/traversal.ts>getName

Port of fb55/htmlparser2 for Deno
Latest
function getName
import { getName } from "https://deno.land/x/html_parser@v0.1.3/src/utils/traversal.ts";

Get the tag name of an element.

Parameters

elem: Element

The element to get the name for.

Returns

string

The tag name of elem.