Use outerHTML instead of innerHTML in Subpage.kt
This commit is contained in:
parent
84b8275179
commit
bb827638c0
|
@ -14,8 +14,8 @@ data class Subpage(
|
||||||
) {
|
) {
|
||||||
fun open(): Document = window.document.open(
|
fun open(): Document = window.document.open(
|
||||||
type = "text/html",
|
type = "text/html",
|
||||||
replace = (head.map { it.innerHTML }.reduceOrNull { previous, current -> previous + '\n' + current } ?: "").plus(
|
replace = (head.map { it.outerHTML }.reduceOrNull { previous, current -> previous + '\n' + current } ?: "").plus(
|
||||||
'\n' + content.innerHTML
|
'\n' + content.outerHTML
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue