Changeset 31858 in osm for applications


Ignore:
Timestamp:
2015-12-25T20:05:58+01:00 (9 years ago)
Author:
simon04
Message:

JOSM/wikipedia: fix HTML escape

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikidataTagCellRenderer.java

    r31857 r31858  
    1414import org.openstreetmap.josm.Main;
    1515import org.openstreetmap.josm.tools.LanguageInfo;
    16 import org.testng.internal.Utils;
     16import org.openstreetmap.josm.tools.Utils;
    1717
    1818public class WikidataTagCellRenderer extends DefaultTableCellRenderer {
     
    5656            final String label = labelCache.get(id).isDone() ? labelCache.get(id).get() : null;
    5757            final JLabel component = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
    58             component.setText("<html>" + Utils.escapeHtml(id) + (label != null
    59                     ? " <span color='gray'>" + Utils.escapeHtml(label) + "</span>"
     58            component.setText("<html>" + Utils.escapeReservedCharactersHTML(id) + (label != null
     59                    ? " <span color='gray'>" + Utils.escapeReservedCharactersHTML(label) + "</span>"
    6060                    : ""));
    6161            component.setToolTipText(label);
Note: See TracChangeset for help on using the changeset viewer.