Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HTMLEditorKit SCRIPT content tag disappears after read  RSS feed

s Joshi
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to read and display an HTML Document using JEditorPane and HTMLEdiorKit. I am overridding javax.swing.text.html.HTMLDocument.HTMLReader class to read HTML document. My javascript content(functions) disappers when I read the html document. It only displays

<script type="text/javascript">

All the content of the script disappears.

I tried to register script tag with a tag action class, still I can't see content.

I tried to use the orginal HTMLReder. It didn't help.

Any help is appreciated.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!