hasAnchor

fun Element.hasAnchor(anchor: String): Boolean

Checks if the given element has an anchor with the specified anchor name.

Return

whether the element contains the anchor, even if nested

Parameters

anchor

the anchor name to check for