I have a webview in javafx. When a I put a HTML source code into the webview, the source code is rearranged. After getting the rearranged source code from the webview, I can experience the changes. For example the auto p tag rearranging :
The original source is:
<p>
Hello<br>
<p>This is the second line</p>
Third..
</p>
And the rearranged source if I retrieve it..
<p>
Hello<br>
</p>
<p>This is the second line</p>
Third..
<p></p>
The example shows that I do not have a p tag inside a p tag, because the webview rearrange the source code.
The question is that :
How can I turn off the auto p rearranging in the javafx webview?