Changeset 9570 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2016-01-22T22:48:17+01:00 (9 years ago)
Author:
Don-vip
Message:

use Utils.escapeReservedCharactersHTML() instead of duplicating code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java

    r9417 r9570  
    13601360
    13611361        protected void warn(Exception e) {
    1362             String emsg = e.getMessage() != null ? e.getMessage() : e.toString();
    1363             emsg = emsg.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
     1362            String emsg = Utils.escapeReservedCharactersHTML(e.getMessage() != null ? e.getMessage() : e.toString());
    13641363            final String msg = tr(getStr(I18nString.FAILED_TO_LOAD_SOURCES_FROM), url, emsg);
    13651364
Note: See TracChangeset for help on using the changeset viewer.