From 8ef3eca819a0917ca7582b944351d2145fec2bd6 Mon Sep 17 00:00:00 2001 From: vcoppe Date: Wed, 11 Nov 2026 09:32:28 +0100 Subject: [PATCH] replace deprecated method --- gpx-rs/src/core/io/parse.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpx-rs/src/core/io/parse.rs b/gpx-rs/src/core/io/parse.rs index 35fa413ca..492db04e9 100644 --- a/gpx-rs/src/core/io/parse.rs +++ b/gpx-rs/src/core/io/parse.rs @@ -3,7 +3,7 @@ use crate::{ TrackpointCategories, TrackpointChunk, Waypoint, WaypointChunk, distance, }; use chrono::DateTime; -use quick_xml::Error; +use quick_xml::{Error, XmlVersion}; use quick_xml::escape::resolve_predefined_entity; use quick_xml::events::Event; use quick_xml::events::attributes::{Attribute, Attributes}; @@ -324,7 +324,7 @@ fn apply_text( /// The text of an attribute, without its escaping (`&` is `&`), which is written back when the /// file is. As it is in the file if it cannot be read. fn attribute_text(attr: &Attribute<'_>) -> String { - attr.unescape_value() + attr.normalized_value(XmlVersion::Implicit1_0) .map_or_else(|_| attr.value.to_string(), |text| text.into_owned()) }