Skip to content

ElementInterface

  • Full name: \League\HTMLToMarkdown\ElementInterface

Methods

isBlock

public isBlock(): bool

isText

public isText(): bool

isWhitespace

public isWhitespace(): bool

getTagName

public getTagName(): string

getValue

public getValue(): string

hasParent

public hasParent(): bool

getParent

public getParent(): ?\League\HTMLToMarkdown\ElementInterface

getNextSibling

public getNextSibling(): ?\League\HTMLToMarkdown\ElementInterface

getPreviousSibling

public getPreviousSibling(): ?\League\HTMLToMarkdown\ElementInterface

isDescendantOf

public isDescendantOf(string|string[] $tagNames): bool

Parameters:

Parameter Type Description
$tagNames string|string[]

hasChildren

public hasChildren(): bool

getChildren

public getChildren(): \League\HTMLToMarkdown\ElementInterface[]

getNext

public getNext(): ?\League\HTMLToMarkdown\ElementInterface

getSiblingPosition

public getSiblingPosition(): int

getChildrenAsString

public getChildrenAsString(): string

setFinalMarkdown

public setFinalMarkdown(string $markdown): void

Parameters:

Parameter Type Description
$markdown string

getListItemLevel

public getListItemLevel(): int

getAttribute

public getAttribute(string $name): string

Parameters:

Parameter Type Description
$name string


Automatically generated on 2025-03-18