Alex Styl
08/08/2025, 7:36 AM<html>
tag?
I want to be able to output html like <div></div>
but it seems like i am forced to create it like <html><div></div></html
Alex Styl
08/08/2025, 7:40 AMtypealias Html = FlowContent
fun writeHtml(builderAction: Html.() -> Unit): String {
return createHTML(prettyPrint = false)
.apply { div { builderAction() } }
.finalize()
.removePrefix("<div>")
.removeSuffix("</div>")
}
Tim Schraepen
08/09/2025, 9:58 PM