Changeset 5697 in josm


Ignore:
Timestamp:
2013-02-06T01:35:48+01:00 (12 years ago)
Author:
Don-vip
Message:

fix #8398 - Correct display of tags containing XML entities

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

    r5659 r5697  
    4848import javax.swing.JLabel;
    4949import javax.swing.JList;
    50 import javax.swing.JOptionPane;
    5150import javax.swing.JPanel;
    5251import javax.swing.KeyStroke;
     
    6968import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionManager;
    7069import org.openstreetmap.josm.gui.util.GuiHelper;
     70import org.openstreetmap.josm.io.XmlWriter;
    7171import org.openstreetmap.josm.tools.GBC;
    7272import org.openstreetmap.josm.tools.Shortcut;
     
    586586                final JLabel tagLabel = new JLabel("<html>"
    587587                    + "<style>td{border:1px solid gray; font-weight:normal"+color+"}</style>"
    588                     + "<table><tr><td>" + t.toString() + "</td></tr></table></html>");
     588                    + "<table><tr><td>" + XmlWriter.encode(t.toString(), true) + "</td></tr></table></html>");
    589589                if (action.isEnabled()) {
    590590                    // Register action
Note: See TracChangeset for help on using the changeset viewer.