R
Rex King
I have to create a HTML pane using a JEditorpane that lets the user
type in HTML formatted text and then preview it.
However-the user is only allowed to enter a few tags-bold, underline,
italics, and ordered and unordered lists.
The conventional way to do it would be to parse the entered string and
filter out the other tags.
Is there a better way to do it, using the editorkit classes, or the
HTMLDocument class, or something like that?
type in HTML formatted text and then preview it.
However-the user is only allowed to enter a few tags-bold, underline,
italics, and ordered and unordered lists.
The conventional way to do it would be to parse the entered string and
filter out the other tags.
Is there a better way to do it, using the editorkit classes, or the
HTMLDocument class, or something like that?