commonMain.com.fleeksoft.ksoup.nodes.CDataNode.kt Maven / Gradle / Ivy
package com.fleeksoft.ksoup.nodes
import okio.IOException
/**
* A Character Data node, to support CDATA sections.
*/
internal class CDataNode(text: String?) : TextNode(text!!) {
override fun nodeName(): String {
return "#cdata"
}
/**
* Get the unencoded, **non-normalized** text content of this CDataNode.
* @return unencoded, non-normalized text
*/
override fun text(): String {
return getWholeText()
}
@Throws(IOException::class)
override fun outerHtmlHead(
accum: Appendable,
depth: Int,
out: Document.OutputSettings,
) {
accum
.append("")
}
override fun clone(): CDataNode {
return this.clone()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy