If I do something like this with a jsoup Element
new Element("div").html("<p></p>")
The output of the toString()
method (or for that case the outerHtml()
) method yields something like this.
<div>
<p></p>
</div>
I cannot find anything in the documentation that says it adds newlines or spaces to whatever is added to Element
.
Is there any way to output it like that:
<div><p></p></div>