2

As in the title: Is it possible to deactivate/turn off the JavaFx WebViews HTML Rendering Engine?
I would like to see the raw HTML-Code in the same WebView-Component.

Changing the contentType to text, results in an empty WebView:

String content = "<HTML><b>test</b></HTML>";
String contentType = "text"; // text/html
webEngine.loadContent(content, contentType);

Ben
  • 3,378
  • 30
  • 46

1 Answers1

4

The mime type for plain text is text/plain, so you need:

String contentType = "text/plain";
James_D
  • 201,275
  • 16
  • 291
  • 322