org.erights.e.meta.javax.swing
Class JEditorPaneSugar
java.lang.Object
|
+--org.erights.e.meta.javax.swing.JEditorPaneSugar
- public class JEditorPaneSugar
- extends Object
Untamed:
- Author:
- Mark S. Miller
Method Summary |
static void |
setText(JEditorPane self,
String t)
Enabled: This has been overridden to accept only safe html, ie, no tags
that imply following a URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JEditorPaneSugar
private JEditorPaneSugar()
- prevent instantiation
setText
public static void setText(JEditorPane self,
String t)
- Enabled: This has been overridden to accept only safe html, ie, no tags
that imply following a URL.
JEditorPane is declared 'safe', so it must not provide any implicit
authority. The underlying html renderer will follow link and image
URLs in the set text. Therefore, from E, we prevent the setting of
text that would cause the renderer to employ these authorities which
have never been granted to it.
- See Also:
SafeHTMLParser
comments?