commonMain.configuration.KspoonConfiguration.kt Maven / Gradle / Ivy
package dev.burnoo.kspoon.configuration
import com.fleeksoft.ksoup.Ksoup
import com.fleeksoft.ksoup.nodes.Document
import dev.burnoo.kspoon.HtmlTextMode
import kotlinx.serialization.modules.EmptySerializersModule
import kotlinx.serialization.modules.SerializersModule
@PublishedApi
internal class KspoonConfiguration(
val parse: (html: String) -> Document = { html -> Ksoup.parse(html) },
val defaultTextMode: HtmlTextMode = HtmlTextMode.Text,
val coerceInputValues: Boolean = false,
val serializersModule: SerializersModule = EmptySerializersModule(),
)