atag

fun FlowOrInteractiveOrPhrasingContent.atag(text: String, href: String, newWindow: Boolean = true)

Emit an <a> anchor with the given text and href. By default, opens in a new window (target="_blank").

Parameters

newWindow

when true, sets target="_blank"; otherwise omits the attribute.