encodeText in QDom in Qt before 6.8.0 has a complex algorithm involving XML string copy and inline replacement of parts of a string (with relocation of later data).
"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-58958.json"