find action: escape xml (IDEA-93225)

This commit is contained in:
anna
2012-10-19 18:44:39 +02:00
parent 1f31a5fcfe
commit 8556aa191e
@@ -165,8 +165,9 @@ public class GotoActionModel implements ChooseByNameModel, CustomMatcherModel, C
if (hit == null) {
hit = ((OptionDescription)value).getOption();
}
if (hit.length() > 30) {
hit = hit.substring(0, 30) + "...";
hit = StringUtil.unescapeXml(hit);
if (hit.length() > 60) {
hit = hit.substring(0, 60) + "...";
}
final JBLabel label = new JBLabel(hit.trim());
label.setIcon(EMPTY_ICON);