Repository navigation
leaflet-gpx 3.0.0-beta.3
Pre-release
Pre-release
Fixes #189: GPX waypoint names and descriptions are now displayed as text instead of interpreted as popup HTML. This prevents markup from untrusted GPX files executing when the built-in popup opens. Bold names and line breaks are preserved.
npm install leaflet@beta leaflet-gpx@3.0.0-beta.3Thanks to @anupam-orbisai for the original patch. The fix is also backported to the leaflet-gpx-2.x branch; it is not in the published 2.2.0 release yet.
Verified with malicious markup, entities, quotes and ordinary text in real Leaflet popup DOM, plus Chrome and Firefox on both Leaflet release lines. The existing runtime, type and packed-package checks pass.