getAnchorElement

fun getAnchorElement(anchor: String, element: Element): Element?

Gets the element of the anchor with the specified anchor name within the given element, if the anchor exists.

Return

the element of the anchor, or null if not found

Parameters

anchor

the anchor name to look for

element

the element to search in