Interface Tag

The object that is an element of the return array of Wikitext.parseTags.

Hierarchy

  • Tag

Properties

endIndex: number

The index up to, but not including, the end of the tag in the wikitext.

innerText: string

The text inside the tag (i.e. innerHTML).

name: string

The name of the tag in lowercase (for <!----> tags, the name is comment).

nestLevel: number

The nest level of the tag (0 if not inside any parent tag).

selfClosed: boolean

Whether the tag closes itself. For comments, true for empty ones (i.e. <!---->), false otherwise.

startIndex: number

The index to the start of the tag in the wikitext.

text: string

The whole text of the tag (i.e. outerHTML).

unclosed: boolean

Whether the tag is unclosed.

Generated using TypeDoc