I read an html file,and write part of it in JEditorPane, then I get the text of JEditorPane. what I get by getText from JEditorPane has some more tags which do not exist in the original html...