We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 580da81 commit 5a5b3daCopy full SHA for 5a5b3da
aztec/src/main/kotlin/org/wordpress/aztec/util/CleaningUtils.kt
@@ -2,6 +2,7 @@ package org.wordpress.aztec.util
2
3
import org.jsoup.Jsoup
4
import org.jsoup.nodes.Document
5
+import org.jsoup.parser.Parser
6
7
object CleaningUtils {
8
@@ -20,7 +21,7 @@ object CleaningUtils {
20
21
22
@JvmStatic
23
fun cleanNestedBoldTags(html: String) : String {
- val doc = Jsoup.parseBodyFragment(html).outputSettings(Document.OutputSettings())
24
+ val doc = Jsoup.parse(html, "", Parser.xmlParser()).outputSettings(Document.OutputSettings().prettyPrint(false))
25
cleanNestedBoldTags(doc)
26
return doc.html()
27
}
0 commit comments