KtSoupText

expect class KtSoupText : KtSoupNode
actual class KtSoupText : KtSoupNode
actual class KtSoupText : KtSoupNode
actual class KtSoupText(textPtr: CPointer<lxb_dom_text_t>) : KtSoupNode

Constructors

Link copied to clipboard
constructor(textPtr: CPointer<lxb_dom_text_t>)

Functions

Link copied to clipboard
expect fun child(index: Int): KtSoupNode?

Get the child KtSoupNode at the given index or null if the index is out of range.

actual fun child(index: Int): KtSoupNode?
actual fun child(index: Int): KtSoupNode?
actual fun child(index: Int): KtSoupNode?
Link copied to clipboard
expect fun children(): List<KtSoupNode>

Get a list of all the child nodes.

actual fun children(): List<KtSoupNode>
actual fun children(): List<KtSoupNode>
actual fun children(): List<KtSoupNode>
Link copied to clipboard
expect open operator override fun equals(other: Any?): Boolean
actual open operator override fun equals(other: Any?): Boolean
actual open operator override fun equals(other: Any?): Boolean
actual open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
expect open override fun hashCode(): Int
actual open override fun hashCode(): Int
actual open override fun hashCode(): Int
actual open override fun hashCode(): Int
Link copied to clipboard
expect fun html(): String

Get the outer HTML as a string or the textContent if it's not an Element.

actual fun html(): String
actual fun html(): String
actual fun html(): String
Link copied to clipboard
expect fun nodeName(): String

Get the node name of this node.

actual fun nodeName(): String
actual fun nodeName(): String
actual fun nodeName(): String
Link copied to clipboard
expect fun nodeType(): KtSoupNodeType

Get the KtSoupNodeType of this node.

actual fun nodeType(): KtSoupNodeType
actual fun nodeType(): KtSoupNodeType
actual fun nodeType(): KtSoupNodeType
Link copied to clipboard
expect fun parent(): KtSoupNode?

Get this node's parent KtSoupNode or null if it has no parent.

actual fun parent(): KtSoupNode?
actual fun parent(): KtSoupNode?
actual fun parent(): KtSoupNode?
Link copied to clipboard
expect fun textContent(): String

Get the text content of this node.

actual fun textContent(): String
actual fun textContent(): String
actual fun textContent(): String
Link copied to clipboard
expect open override fun toString(): String
actual open override fun toString(): String
actual open override fun toString(): String
actual open override fun toString(): String