Do allow <script> tags in Hints Browser (reverted from commit 9895b236453e613bacda3f4659ef2b53ab392aaf)
@@ -335,7 +335,7 @@ implements IContextProvider, IHintsView, ISelectionListener, IComponentSelection
html.append("</head>"); //$NON-NLS-1$
html.append("<body>"); //$NON-NLS-1$
- html.append(sanitiseBrowserText(text));
+ html.append(text);
html.append("</body>"); //$NON-NLS-1$
html.append("</html>"); //$NON-NLS-1$
@@ -436,12 +436,6 @@ implements IContextProvider, IHintsView, ISelectionListener, IComponentSelection
return ColorFactory.get(220, 235, 235);
}
- private String sanitiseBrowserText(String text) {
- // Don't allow JS
- text = text.replace("<script>", ""); //$NON-NLS-1$ //$NON-NLS-2$
- text = text.replace("</script>", ""); //$NON-NLS-1$ //$NON-NLS-2$
- return text;
- }
@Override
public void dispose() {
